/* MISSA TV 360 PLUS — page d'accueil en onglets.
   Fond noir et bleu nuit, cartes en verre dépoli ; le jaune et le vert de l'application
   servent d'accents (lueurs, dégradés, contours), sans aplats agressifs.
   Polices système uniquement. */

:root {
  --y: #f5b800;
  --y-2: #ffd54a;
  --g: #2fd37a;
  --g-2: #15b866;
  --n: #0e1422;
  --k: #04050a;
  --text: #f4f6fa;
  --muted: #9aa3b5;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.09);
  --r: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
  background: var(--k); color: var(--text);
  font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--y); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -0.025em; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; background: rgba(245,184,0,.1); border: 1px solid rgba(245,184,0,.25); padding: 2px 9px; border-radius: 8px; color: var(--y-2); }
:focus-visible { outline: 2px solid var(--g); outline-offset: 3px; border-radius: 12px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--y); color: #000; padding: 8px 14px; border-radius: 10px; z-index: 60; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- fond animé (aurore) */
.glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #0b1120 0%, var(--k) 60%); }
.glow::before, .glow::after {
  content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  filter: blur(90px); opacity: .32;
}
.glow::before { background: radial-gradient(circle, var(--y) 0%, transparent 60%); top: -35vmax; right: -20vmax; animation: driftA 22s ease-in-out infinite alternate; }
.glow::after { background: radial-gradient(circle, var(--g) 0%, transparent 60%); bottom: -40vmax; left: -25vmax; animation: driftB 26s ease-in-out infinite alternate; opacity: .26; }
@keyframes driftA { to { transform: translate(-18vmax, 14vmax) scale(1.15); } }
@keyframes driftB { to { transform: translate(20vmax, -12vmax) scale(1.1); } }
body::after { /* grille discrète */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}

/* ---------------------------------------------------------------- barre */
.bar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px;
  padding: 12px clamp(14px, 3vw, 36px);
  background: rgba(4,5,10,.55); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  animation: drop .8s var(--ease) both;
}
@keyframes drop { from { opacity: 0; transform: translateY(-100%); } }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.1rem; text-decoration: none; white-space: nowrap; }
.logo img { border-radius: 10px; box-shadow: 0 0 22px rgba(245,184,0,.35); }
.logo b { background: linear-gradient(135deg, var(--g), var(--g-2)); color: #fff; font-size: .74rem; padding: 2px 8px; border-radius: 999px; margin-left: 4px; }

.tabs { position: relative; display: flex; gap: 2px; margin: 0 auto; padding: 5px; background: var(--glass); border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; z-index: 1; padding: 9px 17px; border-radius: 999px; color: var(--muted); font-weight: 650; font-size: .93rem; text-decoration: none; white-space: nowrap; transition: color .35s var(--ease); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: #111; }
.tab-ink {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--y-2), var(--y));
  box-shadow: 0 0 0 1px rgba(47,211,122,.7), 0 8px 28px rgba(245,184,0,.45);
  transition: transform .55s var(--spring), width .55s var(--spring);
}
html:not(.js) .tab-ink { display: none; }
.bar-end { display: flex; align-items: center; gap: 10px; }
.lang { color: var(--muted); font-weight: 800; font-size: .82rem; text-decoration: none; border: 1px solid var(--line); padding: 7px 11px; border-radius: 999px; transition: color .3s, border-color .3s; }
.lang:hover { color: var(--text); border-color: var(--g); }

/* ---------------------------------------------------------------- boutons */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 750; text-decoration: none; border: 1px solid transparent;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease), border-color .3s, background .3s;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-sm { padding: 9px 17px; font-size: .9rem; }
.btn-primary { color: #121000; background: linear-gradient(135deg, var(--y-2), var(--y)); box-shadow: 0 10px 30px -8px rgba(245,184,0,.6); }
.btn-g { color: #04200f; background: linear-gradient(135deg, #5fe89b, var(--g)); box-shadow: 0 10px 30px -8px rgba(47,211,122,.55); }
.btn-primary::after, .btn-g::after { /* reflet qui traverse le bouton */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); animation: sheen 3.8s var(--ease) infinite;
}
@keyframes sheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.btn-primary:hover { box-shadow: 0 16px 40px -8px rgba(245,184,0,.75); }
.btn-ghost { color: var(--text); background: var(--glass); border-color: var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(47,211,122,.6); box-shadow: 0 0 0 4px rgba(47,211,122,.08); }

/* ---------------------------------------------------------------- scène et transitions */
.stage { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(22px, 4vw, 48px) clamp(14px, 3vw, 36px) 30px; }
.js .panel:not(.is-active) { display: none; }
.panel.enter-r { animation: inR .7s var(--ease) both; }
.panel.enter-l { animation: inL .7s var(--ease) both; }
@keyframes inR { from { opacity: 0; transform: translateX(70px) scale(.98); filter: blur(10px); } }
@keyframes inL { from { opacity: 0; transform: translateX(-70px) scale(.98); filter: blur(10px); } }
.panel.is-active [data-rise] { animation: rise .8s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 120ms); }
@keyframes rise { from { opacity: 0; transform: translateY(34px) scale(.96); filter: blur(6px); } }

.head { text-align: center; max-width: 760px; margin: 0 auto 34px; }
.head h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; background: linear-gradient(180deg, #fff 30%, #b9c0cf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.head p { color: var(--muted); margin: 12px 0 0; font-size: 1.08rem; }
.note { color: var(--muted); font-size: .88rem; text-align: center; max-width: 760px; margin: 26px auto 0; }

/* ---------------------------------------------------------------- cartes en verre */
.card {
  --acc: var(--y);
  position: relative; border-radius: var(--r); padding: 26px;
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .5s var(--spring), border-color .4s, box-shadow .5s var(--ease);
}
.acc-g { --acc: var(--g); }
.acc-y { --acc: var(--y); }
.acc-n { --acc: #6b8cff; }
.card::before { /* projecteur qui suit la souris */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--acc) 18%, transparent), transparent 60%);
}
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--acc) 45%, transparent); box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--acc) 45%, transparent); }
.card:hover::before { opacity: 1; }
.ico {
  display: block; width: 46px; height: 46px; padding: 11px; border-radius: 14px; margin-bottom: 16px;
  fill: none; stroke: var(--acc); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  background: color-mix(in srgb, var(--acc) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 30%, transparent);
  transition: transform .6s var(--spring);
}
.card:hover .ico { transform: rotate(-8deg) scale(1.1); }

/* ---------------------------------------------------------------- accueil */
.panel-home { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(22px, 4vw, 54px); align-items: center; }
.hero-copy { padding: 10px 0; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 22px; font-weight: 600; font-size: .88rem; color: var(--muted); }
.chip-g { color: var(--g); background: rgba(47,211,122,.1); border: 1px solid rgba(47,211,122,.35); padding: 5px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; }
.chip-g::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--g); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47,211,122,.7); } 70%, 100% { box-shadow: 0 0 0 9px rgba(47,211,122,0); } }
.hero-copy h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 850; }
.grad {
  background: linear-gradient(100deg, var(--y-2), var(--y) 30%, var(--g) 60%, var(--y-2) 90%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: flow 6s linear infinite;
}
@keyframes flow { to { background-position: -200% 0; } }
.lead { font-size: 1.1rem; color: var(--muted); margin: 20px 0 30px; max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta.center { justify-content: center; margin-top: 30px; }
.meta { font-size: .84rem; margin: 18px 0 0; color: var(--muted); }

.home-side { display: flex; flex-direction: column; gap: 18px; perspective: 1400px; }
.tv-wrap { position: relative; transform: rotateY(var(--ry, -9deg)) rotateX(var(--rx, 4deg)); transition: transform .6s var(--ease); animation: float 7s ease-in-out infinite; }
.tv-wrap::after { /* lueur sous l'écran */
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -40px; height: 60px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245,184,0,.45), rgba(47,211,122,.2), transparent); filter: blur(18px); z-index: -1;
}
@keyframes float { 50% { translate: 0 -12px; } }
.tv {
  position: relative; aspect-ratio: 1304 / 786; border-radius: 18px; overflow: hidden; background: var(--n);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.12), 0 0 60px -10px rgba(245,184,0,.25);
}
.tv::after { /* reflet de la vitre */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255,255,255,.12) 0%, transparent 28%);
}
.tv-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); filter: blur(6px); transition: opacity 1s var(--ease), transform 2.4s var(--ease), filter 1s var(--ease); }
.tv-shot.on { opacity: 1; transform: none; filter: none; }
html:not(.js) .tv-shot:first-child { opacity: 1; transform: none; filter: none; }
.points { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.points li { display: flex; align-items: center; gap: 8px; background: var(--glass); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: .88rem; color: #dfe4ee; }
.points svg, .plan li svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--g); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.feats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 10px; }
.feat h2 { font-size: 1.12rem; margin-bottom: 8px; }
.feat p { margin: 0; color: var(--muted); font-size: .95rem; }

.marquee { grid-column: 1 / -1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); margin-top: 6px; }
.track { display: flex; gap: 14px; width: max-content; animation: scroll 38s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.track span { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-weight: 650; white-space: nowrap; background: var(--glass); }
.track span:nth-child(3n+1) { color: var(--y-2); border-color: rgba(245,184,0,.3); }
.track span:nth-child(3n+2) { color: #7ff0b0; border-color: rgba(47,211,122,.3); }
@keyframes scroll { to { transform: translateX(calc(-50% - 7px)); } }

/* ---------------------------------------------------------------- univers */
.fams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fam h3 { font-size: 1.3rem; margin-bottom: 14px; }
.fam ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fam li { position: relative; padding: 9px 12px 9px 26px; border-radius: 12px; background: rgba(255,255,255,.03); font-weight: 600; transition: background .3s, transform .4s var(--spring); }
.fam li::before { content: ""; position: absolute; left: 11px; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); }
.fam li:hover { background: rgba(255,255,255,.07); transform: translateX(4px); }
.fam small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }

/* ---------------------------------------------------------------- aperçu */
.viewer { max-width: 1020px; margin: 0 auto; }
.picks { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.pick { font: inherit; font-weight: 700; cursor: pointer; color: var(--muted); padding: 10px 22px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); transition: all .4s var(--ease); }
.pick:hover { color: var(--text); transform: translateY(-2px); }
.pick.on { color: #111; background: linear-gradient(135deg, var(--y-2), var(--y)); border-color: transparent; box-shadow: 0 0 0 1px rgba(47,211,122,.7), 0 10px 30px -10px rgba(245,184,0,.6); }
.tv-big { border-radius: 20px; box-shadow: 0 50px 100px -40px rgba(0,0,0,1), 0 0 0 1px rgba(255,255,255,.12), 0 0 90px -20px rgba(47,211,122,.25); }
.nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; background: rgba(4,5,10,.55); border: 1px solid var(--line); backdrop-filter: blur(10px); color: #fff; font-size: 1.7rem; line-height: 1; transition: background .3s, color .3s, transform .4s var(--spring); }
.nav:hover { background: rgba(245,184,0,.9); color: #111; transform: translateY(-50%) scale(1.1); }
.nav-prev { left: 14px; } .nav-next { right: 14px; }

/* ---------------------------------------------------------------- tarifs */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 30px; }
.plan-g { --acc: var(--g); }
.plan h3 { font-size: 1.2rem; color: #dfe4ee; }
.pdesc { margin: 6px 0 18px; color: var(--muted); }
.price { margin: 0 0 20px; }
.price b { font-size: 2.9rem; font-weight: 850; letter-spacing: -0.04em; }
.price span { color: var(--muted); font-weight: 600; }
.plan-y .price b { background: linear-gradient(135deg, var(--y-2), var(--y)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-g .price b { color: #7ff0b0; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 9px; align-items: center; color: #dfe4ee; }
.plan .btn { width: 100%; }
/* Formule mise en avant : bordure en dégradé qui tourne */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.plan-y {
  border: 1.5px solid transparent;
  background: linear-gradient(180deg, #17150d, #0b0d14) padding-box, conic-gradient(from var(--angle), var(--y), var(--g), rgba(255,255,255,.08) 40%, rgba(255,255,255,.08) 60%, var(--y)) border-box;
  animation: spin 5s linear infinite;
}
@keyframes spin { to { --angle: 360deg; } }
.badge { position: absolute; top: -13px; right: 22px; color: #111; background: linear-gradient(135deg, var(--y-2), var(--y)); font-weight: 800; font-size: .76rem; padding: 5px 12px; border-radius: 999px; box-shadow: 0 6px 18px -4px rgba(245,184,0,.6); }

/* ---------------------------------------------------------------- installer */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.step-card h3 { font-size: 1.22rem; margin-bottom: 18px; }
.step-card ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; position: relative; }
.step-card ol::before { content: ""; position: absolute; left: 16px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--acc), transparent); opacity: .5; }
.step-card li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; color: #d7dce6; position: relative; }
.step-card li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 800; color: #111; background: var(--acc); box-shadow: 0 0 0 5px color-mix(in srgb, var(--acc) 15%, transparent); }
.step-card strong { color: #fff; }

/* ---------------------------------------------------------------- questions */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; transition: border-color .4s, background .4s; }
.faq details:hover { background: var(--glass-2); }
.faq details[open] { border-color: rgba(245,184,0,.45); background: var(--glass-2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(245,184,0,.12); color: var(--y); font-size: 1.3rem; transition: transform .5s var(--spring), background .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(135deg); background: rgba(47,211,122,.15); color: var(--g); }
.faq details p { margin: 0 0 20px; color: var(--muted); animation: rise .5s var(--ease) both; }

/* ---------------------------------------------------------------- pied */
.foot { text-align: center; padding: 24px 16px 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.foot p { margin: 4px 0; }
.foot nav { margin: 8px 0; }
.foot a { color: #d7dce6; }
.foot a:hover { color: var(--y); }
.foot .small { font-size: .78rem; opacity: .8; }

/* ---------------------------------------------------------------- écrans étroits */
@media (max-width: 960px) {
  .bar { flex-wrap: wrap; }
  .tabs { order: 3; width: 100%; margin: 0; }
  .bar-end { margin-left: auto; }
  .panel-home, .feats, .plans, .steps { grid-template-columns: 1fr; }
  .fams { grid-template-columns: 1fr 1fr; }
  .tv-wrap { --ry: 0deg; --rx: 0deg; }
  .plan-y { order: -1; }
}
@media (max-width: 520px) {
  .bar .btn-sm { display: none; }
  .fams { grid-template-columns: 1fr; }
  .tab { padding: 8px 12px; font-size: .88rem; }
  .nav { width: 40px; height: 40px; font-size: 1.4rem; }
}

/* Mouvement réduit : on garde les fondus, on coupe les mouvements continus. */
@media (prefers-reduced-motion: reduce) {
  .glow::before, .glow::after, .track, .tv-wrap, .grad, .plan-y, .btn-primary::after, .btn-g::after { animation: none !important; }
}
