/* ClipsHiro — site public (accueil, confidentialité, conditions).
   Fond clair pour la lecture des pages juridiques ; le cadre 9:16 sombre de l'accueil reprend
   l'identité de l'application (fond #0f1418, accent bleu). */

:root {
  --paper: #f3f5f8;
  --paper-2: #e9edf2;
  --ink: #12202c;
  --ink-2: #3e4c58;
  --muted: #6b7885;
  --line: #d5dce4;
  --accent: #e82e3b;
  --accent-ink: #c4202d;
  --frame: #0f1418;
  --caption: #f5c543;
  --measure: 68ch;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, .brand {
  font-family: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--ink);
}
h1 { font-size: clamp(34px, 4.6vw, 54px); margin: 0 0 22px; }
h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 0 0 16px; }
p { margin: 0 0 16px; }
code { font-size: 0.92em; background: var(--paper-2); padding: 2px 6px; border-radius: 5px; }
strong { color: var(--ink); font-weight: 600; }

/* ---------- En-tête ---------- */

.top {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 14px 28px;
  background: color-mix(in srgb, var(--paper) 88%, white);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 21px; text-decoration: none; color: var(--ink);
}
.brand img { width: 30px; height: 30px; }
.brand span { color: var(--accent); }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; justify-self: center; }
.top nav a {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none;
}
.top nav a:hover { background: var(--paper-2); color: var(--ink); }
.top nav a.active { background: var(--ink); color: var(--paper); }

/* ---------- Accueil ---------- */

main { max-width: 1080px; margin: 0 auto; padding: 48px 28px 72px; overflow-wrap: anywhere; }

.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 48px; align-items: center; padding: 16px 0 40px;
}
.hero .lead { font-size: 19px; color: var(--ink-2); max-width: var(--measure); }
.hero .lead strong { color: var(--ink); }

/* Le cadre 9:16 : ce que produit l'outil, tel quel (fond flou, bande vidéo, sous-titre, accroche). */
.phone {
  justify-self: center; width: min(270px, 70vw); aspect-ratio: 9 / 16; max-width: 100%;
  border-radius: 28px; padding: 10px; background: #1c242b;
  box-shadow: 0 30px 60px -30px rgba(18, 32, 44, .55), inset 0 0 0 1px rgba(255,255,255,.06);
}
.screen {
  position: relative; height: 100%; border-radius: 20px; overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% 0%, #3a5a7c 0%, transparent 60%),
    radial-gradient(90% 50% at 50% 100%, #274a6e 0%, transparent 60%),
    var(--frame);
}
.screen .blur {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #2b4767 0%, #1a2a3c 45%, #22384f 100%);
  filter: blur(14px) brightness(.85); transform: scale(1.15);
}
.screen .hook {
  position: absolute; left: 14px; right: 14px; top: 13%;
  text-align: center; color: #fff; font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700; font-size: 15px; line-height: 1.2;
  text-shadow: 0 0 2px #000, 0 0 6px #000, 0 2px 0 #000;
}
.screen .strip {
  position: absolute; left: 0; right: 0; top: 34%; aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #6b8fb3 0%, #35597f 45%, #1f3550 100%);
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.screen .strip::after {
  /* la silhouette qui parle, très simplifiée */
  content: ""; position: absolute; left: 50%; bottom: 0; width: 42%; height: 62%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 22%, #d9c2a8 0 17%, transparent 18%),
              radial-gradient(ellipse at 50% 100%, #2c3e50 0 52%, transparent 53%);
}
.screen .word {
  position: absolute; left: 0; right: 0; top: 71%;
  text-align: center; color: #fff; font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800; font-size: 24px; letter-spacing: .02em;
  text-shadow: 0 0 2px #000, 0 0 8px #000, 0 3px 0 #000, 0 -3px 0 #000, 3px 0 0 #000, -3px 0 0 #000;
}
.screen .badge {
  position: absolute; left: 12px; bottom: 12px; padding: 4px 9px; border-radius: 999px;
  background: var(--caption); color: #1a1400; font-size: 11px; font-weight: 600;
}
.screen .fx {
  position: absolute; right: 12px; bottom: 12px; color: #cfe0f5; font-size: 11px; opacity: .85;
}
.mock-caption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }

section { padding: 40px 0; border-top: 1px solid var(--line); }
section > p, section > ul, section > ol { max-width: var(--measure); }
section p { color: var(--ink-2); }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: etape; max-width: var(--measure); }
.steps li {
  position: relative; padding: 0 0 22px 56px; counter-increment: etape; color: var(--ink-2);
}
.steps li::before {
  content: counter(etape);
  position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 16px;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 17px; top: 40px; bottom: 2px; width: 2px; background: var(--line);
}
.steps strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 2px; }

.facts { list-style: none; padding: 0; margin: 18px 0 0; max-width: var(--measure); }
.facts li {
  padding: 12px 0 12px 22px; border-top: 1px solid var(--line); color: var(--ink-2); position: relative;
}
.facts li::before {
  content: ""; position: absolute; left: 0; top: 21px; width: 10px; height: 10px; border-radius: 2px;
  background: var(--accent);
}
.facts li:last-child { border-bottom: 1px solid var(--line); }

.contact address { font-style: normal; font-size: 19px; }
.fine { font-size: 14px; color: var(--muted); }

/* ---------- Pages juridiques ---------- */

.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.doc aside { position: sticky; top: 84px; }
.doc aside .toc-title { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.doc aside ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.doc aside li a {
  display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent;
  font-size: 14px; line-height: 1.35; color: var(--ink-2); text-decoration: none;
}
.doc aside li a:hover, .doc aside li a.current { border-left-color: var(--accent); color: var(--ink); }
.doc article { max-width: var(--measure); }
.doc article h1 { margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.doc article h2 { margin-top: 44px; scroll-margin-top: 90px; }
.doc article p, .doc article li { color: var(--ink-2); }
.doc article ul { padding-left: 22px; }
.doc article li { margin: 6px 0; }
table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
th { color: var(--ink); font-weight: 600; background: var(--paper-2); }

/* ---------- Pied ---------- */

footer {
  display: flex; gap: 8px 22px; flex-wrap: wrap; justify-content: center;
  padding: 26px 28px 40px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ---------- Écrans étroits ---------- */

@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero > div { min-width: 0; }
  .phone { order: -1; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .doc aside { position: static; }
  .doc aside ol { border-left: 0; display: flex; flex-wrap: wrap; gap: 4px; }
  .doc aside li a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; margin: 0; }
  .doc aside li a.current { border-color: var(--accent); }
  main { padding: 28px 18px 56px; }
  .top { grid-template-columns: 1fr; justify-items: center; padding: 12px 18px; }
  .top-spacer { display: none; }
}
