/* MISSA TV 360 PLUS — site vitrine. Couleurs reprises du logo et de l'application. */
:root {
  --bg: #14171f;
  --bg-alt: #1b1e26;
  --surface: #222632;
  --stroke: #2f3442;
  --text: #f8f9fc;
  --text-soft: #c9cedb;
  --yellow: #ffe100;
  --green: #22b24c;
  --green-soft: #48e484;
  --blue: #3d6fe0;
  --radius: 16px;
  --wrap: 1120px;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Product Sans", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-soft); }
a:hover { color: var(--yellow); }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }

/* --- Barre du haut ---------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(20, 23, 31, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.brand img { border-radius: 9px; }
.brand strong { color: var(--yellow); }
.topnav { display: flex; align-items: center; gap: 22px; }
.topnav a { color: var(--text-soft); text-decoration: none; font-weight: 500; }
.topnav a:hover { color: var(--text); }
@media (max-width: 720px) { .topnav a:not(.btn):not(.lang-switch) { display: none; } }
.topnav .lang-switch {
  min-width: 40px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--stroke); border-radius: 999px; font-size: .85rem; font-weight: 700; letter-spacing: .04em;
}
.topnav .lang-switch:hover { border-color: var(--green-soft); }

/* --- Boutons ------------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 1.02rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--yellow); color: #14171f; box-shadow: 0 8px 28px rgba(255, 225, 0, .22); }
.btn-primary:hover { color: #14171f; transform: translateY(-1px); box-shadow: 0 10px 32px rgba(255, 225, 0, .32); }
.btn-ghost { color: var(--text); border-color: var(--stroke); background: transparent; }
.btn-ghost:hover { color: var(--text); border-color: var(--green-soft); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .95rem; }
.topnav .btn-small { background: var(--yellow); color: #14171f; }
/* Sélecteur visible à la télécommande et au clavier, comme dans l'application. */
a:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--green-soft); outline-offset: 3px; border-radius: 12px;
}
.btn:focus-visible { border-radius: 999px; }

/* --- Accroche ----------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(520px 360px at -6% 45%, rgba(255, 214, 0, .22), transparent 70%),
    radial-gradient(520px 380px at 106% 50%, rgba(34, 178, 76, .26), transparent 70%),
    var(--bg);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; padding: 88px 0 96px; }
.eyebrow { margin: 0 0 14px; color: var(--green-soft); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; }
h1 { margin: 0; font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.1; letter-spacing: -.02em; }
h1 .accent { color: var(--yellow); }
.lead { margin: 22px 0 32px; font-size: 1.16rem; color: var(--text-soft); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; scroll-margin-top: 90px; }
.release-meta { margin: 18px 0 0; color: var(--text-soft); font-size: .95rem; }

.hero-visual { display: flex; justify-content: center; }
.tv { width: min(100%, 380px); }
.tv-screen {
  aspect-ratio: 16 / 10; border-radius: 22px; padding: 18px;
  background: linear-gradient(160deg, #262b38, #191c25);
  border: 2px solid var(--stroke);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45), inset 0 0 0 6px #10131a;
  display: grid; place-items: center;
}
.tv-screen img { width: 58%; height: auto; border-radius: 24px; box-shadow: 0 0 0 3px var(--green-soft), 0 12px 36px rgba(0, 0, 0, .4); }
.tv-foot { width: 34%; height: 12px; margin: 14px auto 0; border-radius: 0 0 12px 12px; background: var(--stroke); }

@media (max-width: 860px) {
  /* Sur téléphone, le bouton de téléchargement doit apparaître sans défiler. */
  .hero-inner { grid-template-columns: 1fr; padding: 40px 0 64px; text-align: left; }
  .hero-visual { display: none; }
}
@media (max-width: 420px) {
  .brand span { font-size: .86rem; }
  .brand img { width: 30px; height: 30px; }
  .topbar-inner { gap: 8px; }
  .topnav { gap: 8px; }
  .topnav .btn-small { padding: 0 12px; font-size: .88rem; }
  .cta-row .btn { width: 100%; }
}

/* --- Sections ----------------------------------------------------------------------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.01em; }
.section-lead { margin: 0 0 32px; color: var(--text-soft); }
h3 { margin: 0 0 10px; font-size: 1.15rem; }

.strengths { padding: 0 0 20px; margin-top: -40px; position: relative; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card, .steps {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 26px;
}
.card p { margin: 0; color: var(--text-soft); }

.universes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.universes li {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--stroke); border-radius: 14px;
  padding: 16px 18px; font-weight: 600;
}
.universes small { width: 100%; padding-left: 24px; color: var(--text-soft); font-weight: 400; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot.amber { background: var(--yellow); }
.dot.green { background: var(--green); }
.dot.blue { background: var(--blue); }
.dot.violet { background: #9b6cf0; }
.universes li.soon { border-style: dashed; color: var(--text-soft); }

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .shots { grid-template-columns: 1fr; } }
.shots figure { margin: 0; }
.shots img {
  display: block; width: 100%; height: auto; border-radius: 14px;
  border: 1px solid var(--stroke); box-shadow: 0 18px 44px rgba(0, 0, 0, .4);
}
.shots figcaption { margin-top: 12px; color: var(--text-soft); font-size: .95rem; }

.steps ol { margin: 0; padding-left: 22px; color: var(--text-soft); }
.steps li { margin: 0 0 10px; }
.steps strong { color: var(--text); }
code { background: #10131a; border: 1px solid var(--stroke); border-radius: 8px; padding: 2px 8px; color: var(--yellow); font-size: .95em; word-break: break-all; }
.note { margin: 24px 0 0; color: var(--text-soft); }

details { background: var(--surface); border: 1px solid var(--stroke); border-radius: 14px; margin: 0 0 12px; }
summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; position: relative; padding-right: 54px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--green-soft); }
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 22px 20px; color: var(--text-soft); }

.final { padding: 72px 0; background:
  radial-gradient(600px 260px at 50% 120%, rgba(34, 178, 76, .25), transparent 70%), var(--bg-alt); }
.final-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.final h2 { margin: 0; }

.footer { border-top: 1px solid var(--stroke); padding: 28px 0 36px; color: var(--text-soft); font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }

/* --- Pages légales et contact ----------------------------------------------------- */
.legal { padding: 64px 0 80px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.3rem; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--text-soft); }
.legal strong { color: var(--text); }
.legal ul { padding-left: 22px; }
.legal li { margin: 0 0 8px; }
.legal .updated { margin-top: 48px; font-size: .9rem; }
.contact-cards { margin: 28px 0 8px; }
.contact-cards .card p { margin: 0 0 6px; }
.contact-cards .hint { font-size: .92rem; }
/* Informations que l'éditeur doit remplir avant la mise en ligne : bien visibles exprès. */
mark.todo { background: rgba(255, 225, 0, .16); color: var(--yellow); border: 1px dashed var(--yellow); border-radius: 6px; padding: 1px 6px; }
/* Très petits écrans : le logo seul suffit, le bouton Télécharger reste entier. */
@media (max-width: 380px) { .brand span { display: none; } }
