/* apps.ludoc.net — Ludoc, éditeur d'applications.
   Reprend la charte de manuel-videaste.com (demande de Ludoc, 30/11/2026) :
   fond bleu nuit en grille, Barlow Condensed en capitales pour les titres,
   Manrope pour le texte, jaune #ffbd35 pour l'accent. */

@font-face {
  font-family: Barlow;
  src: url("/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0c1420;
  --paper: #f0efe9;
  --ink: #eeeae0;
  --muted: #9ba5b2;
  --accent: #ffbd35;
  --accent-hover: #ffcb5f;
  --line: rgba(213, 223, 239, 0.15);
  --sans: Manrope, "Helvetica Neue", Arial, sans-serif;
  --display: Barlow, Impact, "Arial Narrow", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(20px, 5.2vw, 72px);
  --wide: 1400px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: relative;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  font: 400 16px/26px var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Blue night background: a soft light behind the phone, and the fine grid of manuel-videaste.com */

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background: radial-gradient(ellipse at 70% 42%, #1f324c 0%, #121f30 33%, #0c1420 70%);
  opacity: 0.85;
}

body::after {
  background-image:
    linear-gradient(rgba(180, 204, 232, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 204, 232, 0.06) 1px, transparent 1px);
  background-size: 78px 78px;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 30%, black 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 30%, black 80%, transparent);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--paper);
  font: 700 30px/1 var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

/* Language switch: a visible pill with the flag of the other language */

.lang {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 calc(18px - 0.12em) 0 14px;
  border: 1px solid rgba(240, 239, 233, 0.5);
  border-radius: 999px;
  background: rgba(12, 20, 32, 0.6);
  color: var(--paper);
  font: 700 16px/1 var(--display);
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}

.lang:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lang img {
  display: block;
  width: auto;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 56px;
  min-height: calc(100svh - 82px);
  max-width: var(--wide);
  margin: 0 auto;
  padding: 48px var(--pad) 64px;
}

.meta {
  margin: 0 0 20px;
  color: var(--accent);
  font: 700 16px/1 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Headline on exactly two lines: white, then yellow. The size follows the width of the
   text column (measured: the longest line is 9.92 em in French, 10.91 em in English). */

.hero__text {
  container-type: inline-size;
}

h1 {
  margin: 0;
  color: var(--paper);
  font: 700 min(88px, 9.9cqi)/0.92 var(--display);
  letter-spacing: -0.013em;
  text-transform: uppercase;
}

html[lang="en"] .hero h1 {
  font-size: min(88px, 9cqi);
}

h1 .l1,
h1 .l2 {
  display: block;
  white-space: nowrap;
}

h1 .l2 {
  color: var(--accent);
}

.lede {
  max-width: 34rem;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 26px;
}

.lede strong {
  color: var(--ink);
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: 700 16px/1 var(--display);
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease), transform 150ms var(--ease);
}

.btn:hover {
  border-color: rgba(213, 223, 239, 0.4);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  border-color: transparent;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
}

.btn--primary:hover {
  border-color: transparent;
  background: var(--accent-hover);
}

.hero__visual {
  display: flex;
  justify-content: center;
  margin: 0;
}

.hero__visual img {
  display: block;
  width: min(540px, 40vw);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 32px 48px rgba(0, 0, 0, 0.45));
}

/* Sections */

.block {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 72px var(--pad);
  border-top: 1px solid var(--line);
}

.block h2 {
  margin: 0 0 32px;
  color: var(--accent);
  font: 700 16px/1 var(--display);
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.contact p {
  margin: 0;
  color: var(--paper);
  font: 700 32px/1 var(--display);
  text-align: center;
  text-transform: uppercase;
}

.contact a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 200ms var(--ease);
}

.contact a:hover {
  border-bottom-color: var(--accent);
}

/* Legal notice set as end credits: role on the left of the axis, name on the right */

.credits dl {
  display: grid;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.credits dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.credits dt {
  color: var(--muted);
  font: 700 15px/22px var(--display);
  letter-spacing: 0.1em;
  text-align: right;
  text-transform: uppercase;
}

.credits dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 22px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.foot {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 32px var(--pad) 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 700 14px/1 var(--display);
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.foot p {
  margin: 0;
}

.foot a,
.legal__back a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}

.foot a:hover,
.legal__back a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Legal notice page */

.legal {
  max-width: var(--wide);
  min-height: calc(100svh - 82px - 95px);
  margin: 0 auto;
  padding: 80px var(--pad) 96px;
}

.legal__title {
  margin: 0 0 48px;
  font-size: 56px;
  line-height: 1;
  text-align: center;
}

.legal__back {
  margin: 48px 0 0;
  font: 700 15px/1 var(--display);
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

/* One entrance on load */

@media (prefers-reduced-motion: no-preference) {
  .hero__text,
  .hero__visual {
    animation: rise 450ms var(--ease) both;
  }

  .hero__visual {
    animation-delay: 60ms;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
  }
}

/* Small screens */

@media (max-width: 760px) {
  :root {
    --pad: 20px;
  }

  .top {
    height: 64px;
  }

  .brand {
    font-size: 26px;
  }

  .lang {
    gap: 8px;
    height: 36px;
    padding: 0 calc(14px - 0.1em) 0 12px;
    font-size: 14px;
    letter-spacing: 0.1em;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    min-height: 0;
    padding: 40px var(--pad) 64px;
  }

  .hero__visual img {
    width: 340px;
  }

  .block {
    padding: 56px var(--pad);
  }

  .contact p {
    font-size: 26px;
  }

  .legal {
    padding: 48px var(--pad) 64px;
  }

  .legal__title {
    margin-bottom: 32px;
    font-size: 40px;
  }

  .credits dl {
    gap: 16px;
  }

  .credits dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .credits dt,
  .credits dd {
    text-align: center;
  }
}
