/* Laterna - accueil, page Lumen et page d'installation (refonte de novembre 2026).
   Se charge après style.css et n'en reprend que les jetons : polices, couleurs, verre, or. */

/* ---------- Repères communs ---------- */
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); }
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--beam); }
.section-head .kicker + h2 { margin-top: 18px; }
.section-head h2 { letter-spacing: -0.03em; }
.page-home main > section:not(.hero):not(.cta-final) { padding: 104px 0; }
@media (max-width: 720px) { .page-home main > section:not(.hero):not(.cta-final) { padding: 76px 0; } }

/* ---------- Héros : la maquette de l'ancien site (fenêtre et téléphone, en CSS) ---------- */
.hero2 { padding: 132px 0 0; }
.hero2 .hero-text { max-width: 920px; }
.hero2 .hero-news { margin: 0 0 26px; }
.hero2 h1 { font-size: clamp(42px, 7.4vw, 92px); letter-spacing: -0.04em; line-height: 1.02; margin: 0 0 24px; }
.hero2 .lead { max-width: 700px; font-size: clamp(17px, 1.9vw, 20px); line-height: 1.6; }
.hero2 .hero-cta { margin-top: 36px; }
.hero2 .stage { max-width: 1080px; margin-inline: auto; }
.hero2 .works { margin-top: 110px; padding-bottom: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .hero2 .hero-text > * { animation: text-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .hero2 .hero-text > :nth-child(2) { animation-delay: 0.05s; }
  .hero2 .hero-text > :nth-child(3) { animation-delay: 0.1s; }
  .hero2 .hero-text > :nth-child(n+4) { animation-delay: 0.15s; }
  .restored .hero2 .hero-text > * { animation: none; }
}
@keyframes text-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .hero2 { padding-top: 112px; }
  .hero2 .hero-news a { font-size: 12.5px; }
  .hero2 .works { margin-top: 64px; }
}

/* ---------- Pourquoi ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--line);
  box-shadow: 0 0 0 1px var(--line);
}
.why-item { padding: 34px 30px 36px; background: linear-gradient(180deg, #0f0f12, #0b0b0d); }
.why-ic { width: 26px; height: 26px; color: var(--gold); margin-bottom: 22px; filter: drop-shadow(0 0 10px rgb(251 191 36 / 0.35)); }
.why-item h3 { font-size: 20px; letter-spacing: -0.015em; margin-bottom: 10px; }
.why-item p { font-size: 15px; color: var(--muted); }
@media (max-width: 960px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; border-radius: 20px; } .why-item { padding: 28px 22px; } }

.compare {
  margin-top: 28px;
  padding: 34px 34px 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.04), rgb(255 255 255 / 0.012));
  box-shadow: inset 0 0 0 1px var(--line);
}
.compare-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 18px; }
.compare-head h3 { font-size: clamp(21px, 2.4vw, 26px); }
.compare-head p { color: var(--subtle); font-size: 15px; }
.compare table { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 15px 18px; border-top: 1px solid var(--line); }
.compare thead th, .compare thead td { border-top: 0; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); padding-top: 4px; }
.compare thead th.lm { color: var(--gold-light); }
.compare thead th.lm svg { display: inline-block; width: 15px; height: 15px; margin-right: 7px; vertical-align: -2px; }
.compare tbody th { font-weight: 600; color: #fff; width: 22%; padding-left: 0; }
.compare tbody td { color: var(--muted); width: 39%; }
.compare td.lm { color: #fff; background: linear-gradient(90deg, rgb(251 191 36 / 0.06), rgb(251 191 36 / 0.02)); box-shadow: inset 1px 0 0 rgb(251 191 36 / 0.22); }
.compare-note { margin-top: 18px; font-size: 14px; color: var(--subtle); }
.compare-note a { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-light); font-weight: 600; white-space: nowrap; }
.compare-note a svg { width: 14px; height: 14px; }
@media (max-width: 680px) {
  .compare { padding: 24px 18px 20px; }
  .compare thead { display: none; }
  .compare tr { display: block; padding: 16px 0; border-top: 1px solid var(--line); }
  .compare tbody th, .compare tbody td { display: block; width: auto; border: 0; padding: 0; }
  .compare tbody th { font-size: 15px; margin-bottom: 10px; }
  .compare tbody td { padding: 10px 12px; border-radius: 12px; font-size: 14.5px; }
  .compare tbody td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); margin-bottom: 3px; }
  .compare td.lm { margin-top: 6px; box-shadow: inset 0 0 0 1px rgb(251 191 36 / 0.22); }
  .compare td.lm::before { color: var(--gold-light); }
}

/* ---------- Fonctions phares ---------- */
.hl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 30px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.015));
  box-shadow: inset 0 0 0 1px var(--line);
}
.hl-wide { grid-column: span 2; }
.hl-full { grid-column: 1 / -1; }
.hl-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: center; }
.hl-split > * { min-width: 0; }
.hl-text { display: flex; flex-direction: column; height: 100%; }
.hl-split .hl-opt { top: 30px; right: 26px; }
.hl-books .reader-stage { padding: 0 34px 40px 0; }
.hl-books .rd-panel { width: 176px; padding: 12px; gap: 10px; }
.hl-books .rd-aa { height: 30px; }
.hl-books .rd-th { width: 26px; height: 26px; }
.hl-xray .xt-frame { max-width: 100%; }
.hl-split .hl-mock { padding-top: 36px; }
.hl-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; background: linear-gradient(140deg, rgb(251 191 36 / 0.16), rgb(245 158 11 / 0.05)); box-shadow: inset 0 0 0 1px rgb(251 191 36 / 0.24); }
.hl-ic svg { width: 22px; height: 22px; color: var(--gold-light); }
.hl-card h3 { font-size: 21px; letter-spacing: -0.015em; margin-bottom: 10px; }
.hl-card p { font-size: 15px; color: var(--muted); }
.hl-wide p { max-width: 640px; }
.hl-opt { position: absolute; top: 30px; right: 26px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; color: #e7e5e4; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18); }
.hl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hl-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; font-size: 14.5px; font-weight: 600; color: #fff; }
.hl-link svg { width: 16px; height: 16px; color: var(--gold-light); transition: transform 0.2s; }
.hl-link:hover svg { transform: translateX(3px); }
.hl-cinema::after, .hl-ai::after, .hl-xray::after { content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; }
.hl-card { isolation: isolate; }
.hl-cinema::after { right: -120px; top: -140px; width: 380px; height: 380px; background: radial-gradient(circle, rgb(251 191 36 / 0.14), transparent 68%); }
.hl-xray::after { left: -100px; bottom: -140px; width: 320px; height: 320px; background: radial-gradient(circle, rgb(251 191 36 / 0.1), transparent 68%); }
.hl-ai { background: linear-gradient(160deg, rgb(251 191 36 / 0.07), rgb(255 255 255 / 0.015) 55%); box-shadow: inset 0 0 0 1px rgb(251 191 36 / 0.2); }
.hl-ai::after { right: -160px; bottom: -200px; width: 460px; height: 460px; background: radial-gradient(circle, rgb(251 191 36 / 0.1), transparent 68%); }
.ai-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.ai-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.ai-list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--gold-light); }
.ai-list b { display: block; font-size: 15px; font-weight: 600; }
.ai-list span { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (max-width: 960px) {
  .hl-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hl-split { grid-template-columns: 1fr; }
  .hl-split .hl-mock { margin-top: 4px; }
}
@media (max-width: 640px) {
  .hl-grid { grid-template-columns: 1fr; }
  .hl-wide, .hl-full { grid-column: auto; }
  .hl-card { padding: 26px 22px; }
  .hl-opt { top: 26px; right: 20px; }
  .ai-list { grid-template-columns: 1fr; gap: 0; }
  .hl-books .reader-stage { padding: 0 18px 44px 0; }
  .hl-books .rd-panel { width: 150px; }
}

/* ---------- Lumen, en bref ---------- */
.lumen-teaser { padding: 140px 0 120px !important; }
.lumen-teaser .lm-intro { margin-bottom: 56px; }
.lm-figures-3 { grid-template-columns: repeat(3, 1fr); max-width: 980px; margin: 0 auto; }
.lm-figures-3 .lm-fig { text-align: center; }
.lumen-teaser .more-link { margin-top: 48px; }
@media (max-width: 900px) {
  .lm-figures-3 { grid-template-columns: 1fr; }
  .lm-figures-3 .lm-fig { border-left: 0 !important; padding: 28px 12px; }
  .lm-figures-3 .lm-fig + .lm-fig { border-top: 1px solid var(--line); }
}

/* ---------- Gestion ---------- */
.mgmt-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.mgmt-split > * { min-width: 0; }
.mgmt h2 { font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -0.03em; margin: 18px 0 16px; }
.mgmt-lead { color: var(--muted); font-size: 17px; }
.mgmt-lead code { font-size: 14px; color: #fff; background: rgb(255 255 255 / 0.07); padding: 2px 7px; border-radius: 6px; }
.mgmt-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 20px; }
.mgmt-list li { display: flex; gap: 16px; }
.mgmt-list svg { width: 21px; height: 21px; flex: none; margin-top: 3px; color: var(--gold); }
.mgmt-list h3 { font-size: 17px; margin-bottom: 4px; }
.mgmt-list p { font-size: 14.5px; color: var(--muted); }
.mgmt-roles { display: flex; gap: 14px; margin-top: 30px; padding: 18px 20px; border-radius: 16px; font-size: 14px; color: var(--muted); background: rgb(255 255 255 / 0.03); box-shadow: inset 0 0 0 1px var(--line); }
.mgmt-roles svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--gold-light); }
.mgmt-roles strong { color: #fff; font-weight: 600; }
.mgmt-split { grid-template-columns: 0.72fr 1.28fr; gap: 56px; }
.mgmt-mock .window { aspect-ratio: auto; }
.mgmt-mock .dash { grid-template-columns: 172px 1fr; min-height: 380px; }
.mgmt-mock .dash-side a { white-space: nowrap; }
@media (max-width: 1060px) {
  .mgmt-split { grid-template-columns: 1fr; gap: 44px; }
  .mgmt-mock { order: -1; }
  .mgmt-mock .dash { grid-template-columns: 1fr; min-height: 0; }
}

/* ---------- Confiance ---------- */
.trust2 { padding-top: 24px !important; }
.trust2 h2 { font-size: clamp(26px, 3.2vw, 36px); text-align: center; max-width: 720px; margin: 0 auto 40px; }
.tr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; border-top: 1px solid var(--line); }
.tr-item { display: flex; gap: 14px; padding: 26px 0; }
.tr-item svg { width: 21px; height: 21px; flex: none; margin-top: 2px; color: var(--gold); }
.tr-item h3 { font-size: 16.5px; margin-bottom: 4px; }
.tr-item p { font-size: 14px; color: var(--muted); }
@media (max-width: 960px) { .tr-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tr-grid { grid-template-columns: 1fr; } .tr-item { border-bottom: 1px solid var(--line); } }

/* ---------- Installer, en bref ---------- */
.it-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 20px; align-items: stretch; }
.it-grid > * { min-width: 0; }
.it-need { padding: 30px 28px; border-radius: 22px; background: linear-gradient(180deg, rgb(255 255 255 / 0.045), rgb(255 255 255 / 0.015)); box-shadow: inset 0 0 0 1px var(--line); }
.it-need h3 { font-size: 19px; margin-bottom: 18px; }
.it-need ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.it-need li { display: flex; gap: 12px; font-size: 15px; }
.it-need li svg { width: 19px; height: 19px; flex: none; margin-top: 3px; color: var(--gold); }
.it-need li span { color: var(--muted); }
.it-opt { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--subtle); }
.it-run { display: flex; flex-direction: column; gap: 16px; }
.it-run .code { border-radius: 18px; }
.it-run pre { white-space: pre; }
.it-after { font-size: 14.5px; color: var(--muted); }
.it-after code { font-size: 13px; color: #fff; background: rgb(255 255 255 / 0.07); padding: 2px 6px; border-radius: 6px; }
.it-guide {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 18px;
  background: linear-gradient(120deg, rgb(251 191 36 / 0.12), rgb(245 158 11 / 0.03));
  box-shadow: inset 0 0 0 1px rgb(251 191 36 / 0.3);
  transition: box-shadow 0.2s, background 0.2s;
}
.it-guide:hover { box-shadow: inset 0 0 0 1px rgb(251 191 36 / 0.55); }
.it-guide b { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.it-guide small { display: block; font-size: 14px; color: var(--muted); }
.it-guide > svg { width: 22px; height: 22px; flex: none; color: var(--gold-light); transition: transform 0.2s; }
.it-guide:hover > svg { transform: translateX(4px); }
@media (max-width: 900px) { .it-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ et fin ---------- */
.faq-sec { padding-top: 40px !important; }
.page-home .cta-final { padding: 120px 0 140px; }

/* ---------- Pages Lumen et Installer ---------- */
.lumen-page { padding: 120px 0 120px; border-top: 0; }
.lumen-page::before { display: none; }
.lumen-page .lm-intro { margin-top: 12px; }
.install-page { padding: 132px 0 120px; position: relative; isolation: isolate; }
.install-page::before { content: ""; position: absolute; inset: 0 0 auto; height: 600px; z-index: -1; background: radial-gradient(40% 60% at 30% 0%, rgb(251 191 36 / 0.12), transparent 70%); }
.install-page .section-head h1 { font-size: clamp(36px, 5.4vw, 60px); letter-spacing: -0.03em; margin: 18px 0 18px; }
.crumbs { display: flex; }
.crumbs a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); padding: 6px 14px 6px 10px; border-radius: 999px; background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px var(--line); transition: color 0.15s, background 0.15s; }
.crumbs a:hover { color: #fff; background: rgb(255 255 255 / 0.08); }
.crumbs svg { width: 15px; height: 15px; }
.lumen-page .crumbs { justify-content: center; }
.more-link.pair { gap: 12px; flex-wrap: wrap; }
@media (max-width: 720px) { .lumen-page { padding-top: 100px; } .install-page { padding-top: 104px; } }

/* ---------- Menu du haut : quatre pages, visibles dès 900 px ---------- */
.nav a[aria-current="page"] { color: #fff; background: rgb(255 255 255 / 0.08); }
@media (min-width: 900px) and (max-width: 1060px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .site-header .lang { margin-left: 0; }
}

/* Les liens dans un texte courant (guide complet, guide de laterna-xray) : qu'on voie qu'ils se cliquent. */
.it-after a, .tabpanel .hint a, .install-note a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* Lumen pour Jellyfin : le moteur seul, en plugin (page Lumen, bloc #jellyfin). */
.lm-plugin-hint { margin-top: 18px; font-size: 15px; }
.lm-plugin-hint a { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); text-decoration: none; font-weight: 600; }
.lm-plugin-hint svg { width: 16px; height: 16px; }
.lm-plugin { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; margin-top: 56px; padding: 40px; scroll-margin-top: 96px; }
.lm-plugin .chapter b svg { width: 14px; height: 14px; vertical-align: -2px; }
.lm-plugin h3 { font-size: clamp(26px, 3vw, 34px); margin: 14px 0 10px; }
.lm-plugin-lead { color: #fff; font-size: 18px; margin-bottom: 12px; }
.lm-plugin-text p:not(.lm-plugin-lead), .lm-plugin-install > p { color: var(--muted); font-size: 15px; }
.lm-plugin-install { display: grid; gap: 16px; min-width: 0; }
.lm-plugin-install .code pre { font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.lm-plugin-links { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 860px) { .lm-plugin { grid-template-columns: 1fr; padding: 24px; gap: 24px; } }
