/* =====================================================================
   BOUTIQUE MVS PRODUCTION — style de base (« Néon »)
   Repris du site du studio : mêmes couleurs, polices, boutons, cartes,
   animations. Les autres styles sont dans themes.css, les éléments
   propres à la boutique dans boutique.css.
   ===================================================================== */
:root {
  --bg: #0a0a0c;
  --bg-2: #111114;
  --card: #141417;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f3f3f6;
  --muted: #94949e;
  --accent-rgb: 37, 99, 235;
  --accent2-rgb: 96, 165, 250;
  --accent: rgb(var(--accent-rgb));
  --accent-2: rgb(var(--accent2-rgb));
  --deep: #1e3a8a;
  --soft: #93c5fd;
  --accent-glow: rgba(var(--accent-rgb), .35);
  --radius: 18px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ok: #4ade80;
  --danger: #f87171;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.mono { font-family: var(--mono); letter-spacing: .08em; }
.accent { color: var(--accent); }
code { font-family: var(--mono); color: var(--accent-2); background: rgba(var(--accent-rgb),.1); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* Focus visible partout (clavier) */
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* Fond */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 80%);
}
.cubes { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.cube {
  position: absolute; background: var(--accent); border-radius: 3px; opacity: .8;
  box-shadow: 0 0 18px var(--accent-glow);
  animation: float var(--d, 9s) ease-in-out infinite alternate;
}
.cube.outline { background: transparent; border: 2px solid rgba(var(--accent-rgb),.45); border-radius: 12px; box-shadow: none; }
@keyframes float {
  from { transform: translateY(0) rotate(0); }
  to { transform: translateY(-40px) rotate(25deg); }
}

/* Nav */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  width: min(1200px, calc(100% - 32px));
  display: flex; align-items: center; gap: 24px;
  padding: 10px 12px 10px 18px;
  background: rgba(18, 14, 16, .7);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); border-radius: 999px; z-index: 50;
}
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 42px; width: auto; border-radius: 11px; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 6px 18px rgba(0,0,0,.35); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.logo-footer img { height: 48px; }
.logo:hover img { transform: scale(1.05) rotate(-2deg); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: .9rem; color: #c9c9d1; transition: color .2s; display: flex; gap: 6px; align-items: baseline; white-space: nowrap; }
.nav-links a span { font-family: var(--mono); font-size: .65rem; color: var(--accent); }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; flex: none; }
.burger span { display: block; width: 20px; height: 2px; background: #fff; margin: 5px auto; transition: .3s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; color: inherit;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .2s, box-shadow .2s, background .2s; border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 30px var(--accent-glow); }
.btn-accent:hover { background: var(--accent-2); box-shadow: 0 10px 40px var(--accent-glow); }
.btn-ghost { border-color: var(--line-2); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: rgba(255,255,255,.3); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

/* Hero */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 140px 24px 60px; max-width: 1200px; margin: 0 auto; position: relative;
}
.hero::before {
  content: ""; position: absolute; top: 18%; right: 5%; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb),.25), transparent 65%); filter: blur(20px); z-index: -1;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  padding: 8px 18px 8px 10px; border-radius: 999px; background: rgba(var(--accent-rgb),.08);
  border: 1px solid rgba(var(--accent-rgb),.35); font-size: .9rem; margin-bottom: 28px;
}
.hero-pill .mono { font-size: .7rem; color: var(--muted); }
.hero-pill .mono b { color: var(--accent-2); }
.pill-text { font-weight: 600; }
.dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.2); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(var(--accent-rgb),0); } }
.hero-title { font-size: clamp(2.8rem, 7.2vw, 6.4rem); line-height: .95; font-weight: 900; letter-spacing: -.045em; }
/* Le texte du hero ne passe jamais sous la mascotte */
@media (min-width: 1001px) {
  .hero > :not(.hero-visual):not(.scroll-hint) { max-width: calc(100% - clamp(260px, 30vw, 380px) - 40px); }
}
.rotator {
  display: inline-block; color: var(--accent);
  background: linear-gradient(120deg, var(--accent-2), var(--soft) 50%, var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  transition: opacity .3s, transform .3s;
}
.rotator.out { opacity: 0; transform: translateY(20px); }
.hero-lead { max-width: 560px; color: var(--muted); font-size: 1.15rem; margin: 28px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-stats b { display: block; font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; }
.hero-stats span { color: var(--muted); font-size: .85rem; }
.scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: .7rem; color: var(--muted); animation: bob 2s infinite; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* Marquee */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 36px; width: max-content; animation: scroll 30s linear infinite; font-family: var(--mono); font-size: .85rem; letter-spacing: .15em; color: #c9c9d1; }
.marquee-track i { color: var(--accent); font-style: normal; display: inline-block; animation: spin 4s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sections */
.section { max-width: 1200px; margin: 0 auto; padding: 120px 24px; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.eyebrow { display: inline-block; font-size: .72rem; color: var(--accent-2); margin-bottom: 16px; }
.section-head h2, .cta h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.02; font-weight: 900; letter-spacing: -.04em; }
h2 em, h3 em { font-style: normal; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-top: 18px; }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border: 1px solid var(--line-2); border-radius: var(--radius);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.card:hover { border-color: rgba(var(--accent-rgb),.5); transform: translateY(-4px); box-shadow: 0 20px 50px -20px var(--accent-glow); }

/* Étapes */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { padding: 26px; }
.steps .mono { font-size: .68rem; color: var(--accent-2); }
.steps h3 { font-size: 1.2rem; margin: 12px 0 8px; letter-spacing: -.02em; }
.steps p { color: var(--muted); font-size: .92rem; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255,255,255,.02); transition: border-color .3s; }
.faq details[open] { border-color: rgba(var(--accent-rgb),.45); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; border-radius: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent-2); font-size: 1.3rem; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }
.faq details p a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

/* CTA */
.cta {
  text-align: center; padding: 80px 32px; border-radius: 28px; position: relative; overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb),.35);
  background: radial-gradient(ellipse at 50% 0%, rgba(var(--accent-rgb),.3), transparent 60%), var(--bg-2);
}
.cta p { color: var(--muted); font-size: 1.1rem; max-width: 520px; margin: 18px auto 32px; }
.cta .hero-actions { justify-content: center; }

/* Pied de page */
.footer { max-width: 1200px; margin: 0 auto; padding: 40px 24px 60px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.footer p { font-size: .7rem; color: var(--muted); }
.footer-links { display: flex; gap: 20px; font-size: .9rem; color: #c9c9d1; }
.footer-links a:hover { color: var(--accent-2); }

/* Apparition au scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Animations ===== */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100;
  background: linear-gradient(90deg, var(--deep), var(--accent), var(--accent-2));
  transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px var(--accent-glow);
}
.spotlight {
  position: fixed; left: 0; top: 0; width: 700px; height: 700px; margin: -350px 0 0 -350px;
  border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .13), transparent 60%);
  transform: translate(var(--sx, 50vw), var(--sy, 30vh));
}
.cube { translate: var(--px, 0) var(--py, 0); transition: translate .6s cubic-bezier(.2,.7,.2,1); }

/* Titre : mots qui montent */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.word > span { display: inline-block; transform: translateY(110%); animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--wd, 0s); }
@keyframes rise { to { transform: none; } }
.hero-title .rotator, .hero-title > .accent { opacity: 0; animation: fade-in .6s ease forwards .7s; }
@keyframes fade-in { to { opacity: 1; } }

/* Cartes : inclinaison 3D + lumière qui suit la souris */
.card { position: relative; isolation: isolate; }
.card.visible { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); }
.card.visible:hover { --ty: -4px; }
.card.tilting { transition: transform .12s ease-out, border-color .3s, box-shadow .3s; }
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), .16), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.card:hover::before { opacity: 1; }

/* Boutons aimantés + reflet */
.btn { position: relative; overflow: hidden; translate: var(--bx, 0) var(--by, 0); transition: transform .2s, box-shadow .2s, background .2s, translate .25s cubic-bezier(.2,.8,.2,1); }
.btn-accent::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); animation: shine 4s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes hover-y { 50% { transform: translateY(-10px); } }

/* Bordure lumineuse qui tourne autour du CTA */
.cta { isolation: isolate; border-color: transparent; }
.cta-beam {
  position: absolute; inset: 0; border-radius: inherit; z-index: -1; padding: 1px;
  background: conic-gradient(from var(--angle, 0deg), transparent 0 70%, var(--accent-2) 85%, transparent 100%), rgba(var(--accent-rgb), .25);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: beam 5s linear infinite;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes beam { to { --angle: 360deg; } }

/* Mascotte du hero (simple visuel, sans son) */
.hero-visual {
  position: absolute; right: 24px; top: 50%; margin-top: -230px;
  width: clamp(260px, 30vw, 380px);
  display: flex; flex-direction: column; align-items: center; gap: 34px;
}
.hero-mascot {
  position: relative; width: 100%; aspect-ratio: 1;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
  opacity: 0; animation: mascot-in 1.1s cubic-bezier(.2,.8,.2,1) .3s forwards;
}
@keyframes mascot-in { from { opacity: 0; scale: .7; rotate: -12deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }
.hero-mascot img {
  position: relative; width: 100%; height: auto; z-index: 2;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)) drop-shadow(0 0 40px rgba(var(--accent-rgb), .35));
  animation: mascot-float 5s ease-in-out infinite;
}
@keyframes mascot-float { 50% { transform: translateY(-16px) rotate(2deg); } }
.mascot-ring {
  position: absolute; inset: -12%; border-radius: 50%; z-index: 1;
  border: 1px dashed rgba(var(--accent2-rgb), .35);
  animation: spin 30s linear infinite;
}
.mascot-orbit { position: absolute; inset: -12%; z-index: 3; animation: spin 12s linear infinite; pointer-events: none; }
.mascot-orbit i {
  position: absolute; width: 14px; height: 14px; border-radius: 4px; background: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}
.mascot-orbit i:nth-child(1) { top: -7px; left: calc(50% - 7px); }
.mascot-orbit i:nth-child(2) { bottom: 12%; right: 2%; width: 9px; height: 9px; background: var(--accent-2); }
.mascot-orbit i:nth-child(3) { bottom: 18%; left: 0; width: 7px; height: 7px; }
.float-card { display: none; }

/* Badge sous la mascotte */
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; font-size: .7rem;
  background: rgba(17,17,20,.8); backdrop-filter: blur(10px); color: var(--text);
  border: 1px solid rgba(var(--accent-rgb), .45); box-shadow: 0 10px 30px -10px var(--accent-glow);
  opacity: 0; animation: fade-in .6s ease forwards 1.2s;
}
.hero-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }

/* Responsive */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { position: relative; right: auto; top: auto; margin: 0 0 28px; width: auto; flex-direction: row; gap: 20px; align-self: flex-start; }
  .hero-mascot { width: 130px; flex: none; }
}
@media (max-width: 920px) {
  .nav { gap: 12px; }
  .nav-links {
    position: fixed; top: 74px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(18,14,16,.97); border: 1px solid var(--line-2); border-radius: 20px; padding: 10px;
    opacity: 0; pointer-events: none; visibility: hidden; transform: translateY(-10px); transition: .3s;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; visibility: visible; transform: none; }
  .nav-links a { padding: 14px 16px; font-size: 1rem; }
  .nav-actions { margin-left: auto; }
  .nav-cta { display: none; }
  .burger { display: block; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .section { padding: 80px 16px; }
  .hero { padding: 120px 16px 60px; min-height: auto; }
  .hero-stats { gap: 28px; margin-top: 44px; }
  .hero-pill .mono { display: none; }
  .hero-pill { padding: 8px 16px 8px 12px; font-size: .85rem; }
  .cta { padding: 56px 20px; }
  .nav { padding: 8px 8px 8px 14px; }
  .logo img { height: 32px; }
  .scroll-hint { display: none; }
}

@media (hover: none) { .spotlight { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .word > span { transform: none; }
  .hero-title .rotator, .hero-title > .accent, .hero-mascot, .hero-badge { opacity: 1; }
}

/* Nouveau logo MVS (carre bleu) : coins arrondis et bord lumineux */
.hero-mascot img.hero-logo {
  border-radius: 22%;
  box-shadow: 0 0 0 2px rgba(255,255,255,.14), 0 30px 60px rgba(0,0,0,.55), 0 0 60px rgba(var(--accent-rgb), .35);
  filter: none;
}
.connexion-mascotte { border-radius: 24%; object-fit: cover; }
