/* =========================================================================
   Link'Em'Up — Movies · Feuille de style partagée
   Identité "Ciné-noir" : marquise de cinéma la nuit.
   Aucune requête externe (pas de CDN, pas de webfont, pas d'analytics).
   ========================================================================= */

:root {
  /* Palette ciné-noir */
  --night:      #0D1120;   /* fond nuit */
  --panel:      #161C30;   /* panneaux surélevés */
  --panel-2:    #1E2540;   /* panneau alternatif / hover */
  --gold:       #F6B93B;   /* marquise dorée (accent) */
  --red:        #E43E5B;   /* rouge velours */
  --teal:       #37C8B4;   /* turquoise */
  --ink:        #F4F1E8;   /* encre chaude (texte clair) */
  --muted:      #A9AFC3;   /* texte atténué */

  --line:       rgba(244, 241, 232, 0.10);
  --line-2:     rgba(244, 241, 232, 0.16);
  --shadow:     0 18px 50px -20px rgba(0, 0, 0, 0.75);
  --shadow-sm:  0 8px 24px -14px rgba(0, 0, 0, 0.7);

  --radius:     16px;
  --radius-sm:  10px;
  --maxw:       1120px;

  --display: "Haettenschweiler", "Impact", "Arial Narrow Bold", "Oswald", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background-color: var(--night);
  /* Atmosphère : halos de projecteurs + grain subtil */
  background-image:
    radial-gradient(1100px 600px at 80% -10%, rgba(246, 185, 59, 0.10), transparent 60%),
    radial-gradient(900px 520px at 5% 0%, rgba(55, 200, 180, 0.09), transparent 55%),
    radial-gradient(1000px 700px at 50% 120%, rgba(228, 62, 91, 0.08), transparent 60%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Accessibilité : focus visible partout */
a:focus-visible,
button:focus-visible,
.badge:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold); color: var(--night); }

/* --------------------------------------------------------------- Layout */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }

.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9rem;
}

/* Titres marquise */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.98;
  color: var(--ink);
  margin: 0;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.03em;
}
.section-title .accent { color: var(--gold); }
.section-lead {
  color: var(--muted);
  max-width: 60ch;
  margin: 1rem 0 0;
  font-size: 1.05rem;
}

/* ----------------------------------------------- Motif pellicule (divider) */
.sprocket {
  height: 22px;
  width: 100%;
  border-block: 1px solid var(--line);
  background-color: rgba(0, 0, 0, 0.25);
  /* perforations de pellicule */
  background-image:
    radial-gradient(circle at center, var(--night) 0 42%, transparent 44%);
  background-size: 34px 22px;
  background-position: center;
  opacity: 0.9;
}

/* ------------------------------------------------------------- En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 17, 32, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5ch;
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .em { color: var(--red); }
.brand .up { color: var(--gold); }
.brand .sub {
  font-family: var(--body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--muted);
  align-self: center;
  margin-left: 0.3ch;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
  font-size: 0.92rem;
  font-weight: 600;
}
.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); text-decoration: none; }

/* --------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero-title {
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  letter-spacing: 0.02em;
}
.hero-title .l1 { color: var(--ink); }
.hero-title .l2 { color: var(--gold); }
.hero-title .movies {
  display: block;
  font-size: clamp(0.9rem, 2.5vw, 1.4rem);
  letter-spacing: 0.4em;
  color: var(--teal);
  margin-top: 0.6rem;
}
.hero-pitch {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--ink);
  max-width: 32ch;
  margin: 1.4rem 0 0;
  line-height: 1.35;
}
.hero-note {
  color: var(--muted);
  margin: 0.8rem 0 0;
  font-size: 0.98rem;
}

/* Boutons de badges de stores */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}
.badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.15rem;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.badge:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--gold);
  background: var(--panel-2);
}
.badge .glyph { font-size: 1.6rem; line-height: 1; }
.badge .badge-txt { display: flex; flex-direction: column; line-height: 1.1; }
.badge .badge-txt small {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.badge .badge-txt strong {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.ribbon {
  position: absolute;
  top: -10px;
  right: -8px;
  background: var(--red);
  color: var(--ink);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

/* Illustration du hero : mini-chaîne de liens film → acteur → film */
.hero-art {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(140deg, rgba(246,185,59,0.5), transparent 40%, rgba(55,200,180,0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.chain { display: grid; gap: 0.75rem; }
.node {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--night);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
}
.node .avatar {
  width: 38px; height: 38px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 8px;
  font-size: 1.2rem;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
}
.node .meta small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.node .meta strong {
  font-weight: 700;
  color: var(--ink);
}
.node.target { border-color: var(--gold); }
.node.target .avatar { border-color: var(--gold); color: var(--gold); }
.chain .link-arrow {
  justify-self: center;
  color: var(--teal);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.chain .link-arrow::before,
.chain .link-arrow::after {
  content: "";
  width: 18px; height: 1px;
  background: var(--line-2);
}
.stars-row {
  margin-top: 1rem;
  text-align: center;
  color: var(--gold);
  font-size: 1.3rem;
  letter-spacing: 0.2em;
}

/* ------------------------------------------------------------ Étapes */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  font-size: 2.4rem;
  color: var(--gold);
  position: absolute;
  top: 0.8rem;
  right: 1.1rem;
  opacity: 0.9;
}
.step h3 { font-size: 1.35rem; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.step p { color: var(--muted); margin: 0; }

/* -------------------------------------------------------- Fonctionnalités */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.feature:hover { transform: translateY(-3px); border-color: var(--line-2); }
.feature .icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
}
.feature:nth-child(6n+1) .icon { box-shadow: inset 0 0 0 1px rgba(246,185,59,0.35); }
.feature:nth-child(6n+2) .icon { box-shadow: inset 0 0 0 1px rgba(228,62,91,0.35); }
.feature:nth-child(6n+3) .icon { box-shadow: inset 0 0 0 1px rgba(55,200,180,0.35); }
.feature:nth-child(6n+4) .icon { box-shadow: inset 0 0 0 1px rgba(246,185,59,0.35); }
.feature:nth-child(6n+5) .icon { box-shadow: inset 0 0 0 1px rgba(228,62,91,0.35); }
.feature:nth-child(6n)   .icon { box-shadow: inset 0 0 0 1px rgba(55,200,180,0.35); }
.feature h3 { font-size: 1.3rem; letter-spacing: 0.04em; margin-bottom: 0.45rem; }
.feature p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ----------------------------------------------------------- Captures */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  overflow-x: auto;
  padding-bottom: 1.2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }

/* Cadre de téléphone */
.phone {
  scroll-snap-align: start;
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 30px;
  padding: 12px;
  background:
    linear-gradient(160deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow);
}
.phone::before { /* encoche */
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 46%;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}
.phone .screen {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: 20px;
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 10px, transparent 10px 20px),
    linear-gradient(180deg, var(--panel-2), var(--night));
  display: grid;
  place-items: center;
}
.phone .screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Étiquette de remplacement, visible tant que l'image n'est pas fournie
   (elle reste derrière l'image une fois celle-ci chargée). */
.phone .placeholder {
  position: relative;
  z-index: 0;
  text-align: center;
  padding: 1rem;
  color: var(--muted);
}
.phone .placeholder .cam { font-size: 1.8rem; }
.phone .placeholder small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.phone figcaption {
  margin-top: 0.8rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------- CTA */
.cta {
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4rem);
  box-shadow: var(--shadow);
}
.cta h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.cta p { color: var(--muted); max-width: 46ch; margin: 1rem auto 0; }
.cta .badges { justify-content: center; }

/* ------------------------------------------------------------ Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  margin-top: 2rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-block: 2.5rem;
}
.site-footer .brand { font-size: 1.3rem; }
.footer-tag { color: var(--muted); font-size: 0.9rem; margin: 0.5rem 0 0; max-width: 34ch; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  list-style: none;
  padding: 0; margin: 0;
  font-size: 0.95rem;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-legal {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  padding-block: 1.2rem;
}

/* =====================================================================
   Pages légales : colonne unique lisible
   ===================================================================== */
.legal-header {
  border-bottom: 1px solid var(--line);
  background: rgba(13, 17, 32, 0.82);
  backdrop-filter: blur(10px);
}
.legal-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}
.back-link {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4ch;
}
.back-link:hover { color: var(--ink); text-decoration: none; }

.legal {
  max-width: 74ch;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.legal h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}
.legal .updated {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 2rem;
}
.legal h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  letter-spacing: 0.03em;
  color: var(--gold);
  margin: 2.6rem 0 0.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal h3 {
  font-family: var(--body);
  text-transform: none;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
  margin: 1.4rem 0 0.4rem;
}
.legal p, .legal li { color: var(--ink); }
.legal p { margin: 0.7rem 0; }
.legal ul, .legal ol { margin: 0.7rem 0; padding-left: 1.3rem; }
.legal li { margin: 0.35rem 0; }
.legal strong { color: var(--ink); }
.legal a { color: var(--teal); }
.legal .lead {
  color: var(--muted);
  font-size: 1.08rem;
}
.legal .todo {
  background: rgba(228, 62, 91, 0.12);
  border: 1px dashed var(--red);
  border-radius: 8px;
  padding: 0.15rem 0.5rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.legal .callout {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
}
.legal .callout p:first-child { margin-top: 0; }
.legal .callout p:last-child { margin-bottom: 0; }

.legal dl { margin: 0.8rem 0; }
.legal dt { font-weight: 700; color: var(--gold); margin-top: 1rem; }
.legal dd { margin: 0.2rem 0 0; color: var(--ink); }

/* Animations d'entrée (respecte prefers-reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); animation: rise 0.7s ease forwards; }
  .d1 { animation-delay: 0.05s; }
  .d2 { animation-delay: 0.15s; }
  .d3 { animation-delay: 0.25s; }
  .d4 { animation-delay: 0.35s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* --------------------------------------------------------- Responsive */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .nav .nav-hide { display: none; }
  .site-footer .wrap { flex-direction: column; }
}
