/* =========================================================
   HALYO STUDIO — v2
   ========================================================= */
:root {
  --bg: #030306;
  --accent: 215, 222, 238; /* couleur d'ambiance, animée par main.js toutes les 30 s */
  --text: #f4f5f8;
  --muted: #8e939e;
  --cyan: #eef2fa;
  --violet: #8d95a6;
  --pink: #c9ced9;
  --glass: rgba(255, 255, 255, .055);
  --glass-hi: rgba(255, 255, 255, .11);
  --line: rgba(255, 255, 255, .13);
  --grad: linear-gradient(110deg, #ffffff 0%, #dfe3ea 45%, #8f96a3 100%);
  --sans: "Inter Tight", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --wrap: min(1240px, calc(100% - 40px));
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); background: var(--bg); color: var(--text);
  line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.035em; line-height: 1; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
h1 em, h2 em {
  background: linear-gradient(110deg, #ffffff 0%, rgb(var(--accent)) 55%, rgba(var(--accent), .6) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em;
}

/* ---------- Fond ---------- */
#nebula { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; }
.grain {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 500px; height: 500px; margin: -250px 0 0 -250px;
  border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(var(--accent), .16), transparent 65%);
  opacity: 0; transition: opacity .4s;
}

/* ---------- Verre ---------- */
.glass {
  background: linear-gradient(150deg, var(--glass-hi), var(--glass) 60%);
  border: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-radius: 22px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.14);
}
.spot { position: relative; overflow: hidden; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgba(235,240,250, .14), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.spot:hover::after { opacity: 1; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 999px;
  font: 600 1rem var(--sans); border: 0; cursor: pointer; transition: box-shadow .3s, background .3s;
  will-change: transform;
}
.btn .arrow { transition: transform .3s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-light { background: #fff; color: #06060f; padding: 11px 22px; font-size: .92rem; }
.btn-glow {
  color: #031018; background: linear-gradient(110deg, var(--violet), var(--cyan), #ffffff, var(--cyan), var(--violet)); background-size: 200% 100%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset, 0 12px 40px -10px rgb(var(--accent)), 0 0 60px -20px rgba(var(--accent), .8);
  animation: gradMove 6s linear infinite;
}
.btn-glow:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset, 0 18px 50px -8px var(--pink), 0 0 80px -10px var(--cyan); }
@keyframes gradMove { to { background-position: 200% 0; } }
.btn-ghost { background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--text); justify-content: center; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 500;
  color: var(--muted); letter-spacing: .04em; margin-bottom: 22px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px max(20px, calc((100% - 1240px) / 2));
  transition: background .4s, backdrop-filter .4s, padding .4s;
}
.nav.scrolled {
  background: rgba(4, 4, 11, .55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.06); padding-top: 12px; padding-bottom: 12px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; letter-spacing: -.04em; }
.logo-orb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--grad);
  box-shadow: 0 0 18px rgb(var(--accent)), 0 0 36px rgba(var(--accent), .5);
}
.nav-links { display: flex; gap: 36px; font-size: .95rem; color: var(--muted); }
.nav-links a { transition: color .25s; }
.nav-links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; padding-top: 150px; text-align: center; position: relative; }
.hero-text { width: var(--wrap); margin: 0 auto; position: relative; z-index: 2; }
.hero-title { font-size: clamp(3.2rem, 9.5vw, 8.6rem); font-weight: 600; letter-spacing: -.055em; line-height: .95; }
.hero-title .split { display: block; }
.hero-title em { font-size: 1.08em; }
.hero-sub { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.3rem); margin: 28px auto 38px; max-width: 560px; }

.stage { perspective: 1800px; margin-top: 80px; height: 640px; position: relative; }
.stage-inner {
  position: relative; width: min(1100px, 92vw); height: 100%; margin: 0 auto;
  transform-style: preserve-3d; transform: rotateX(28deg) scale(.9); transform-origin: 50% 0%;
}
.mock { position: absolute; overflow: hidden; border-radius: 18px; }
.mock-center { width: 62%; height: 520px; left: 19%; top: 0; z-index: 3; }
.mock-left  { width: 34%; height: 380px; left: -6%;  top: 110px; transform: translateZ(-160px) rotateY(16deg); z-index: 1; }
.mock-right { width: 34%; height: 380px; right: -6%; top: 110px; transform: translateZ(-160px) rotateY(-16deg); z-index: 1; }
.mock-bar {
  display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.03); font-size: .72rem; color: var(--muted);
}
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.2); }
.mock-bar i:first-child { background: #ff5f73; } .mock-bar i:nth-child(2) { background: #ffc85f; } .mock-bar i:nth-child(3) { background: #4fe39a; }
.mock-bar span { margin-left: 12px; padding: 3px 12px; border-radius: 6px; background: rgba(255,255,255,.06); }
.mock-body { position: absolute; inset: 42px 0 0 0; overflow: hidden; text-align: left; }

.m-event { background: radial-gradient(ellipse at 50% 120%, #3a1478 0%, #0b0620 55%, #050310 100%); }
.m-nav { display: flex; justify-content: space-between; padding: 18px 26px; font-size: .75rem; color: rgba(255,255,255,.6); }
.m-nav b { color: #fff; letter-spacing: .15em; font-weight: 700; }
.m-hero { padding: 40px 26px; position: relative; z-index: 2; }
.m-date { font-size: .78rem; letter-spacing: .25em; color: #6ff4ff; margin-bottom: 14px; }
.m-headline {
  font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; line-height: .88; letter-spacing: -.04em;
  background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,.35)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.m-lineup { display: flex; gap: 10px; margin: 22px 0; flex-wrap: wrap; }
.m-lineup span { font-size: .72rem; letter-spacing: .12em; padding: 6px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; }
.m-cta { display: inline-block; padding: 11px 20px; border-radius: 999px; background: #ff4fb8; font-size: .82rem; font-weight: 600; box-shadow: 0 0 30px #ff4fb8; }
.m-light { position: absolute; top: -20%; width: 120px; height: 140%; filter: blur(30px); opacity: .55; transform-origin: top; }
.l1 { right: 18%; background: linear-gradient(#6ff4ff, transparent); animation: beam 5s ease-in-out infinite alternate; }
.l2 { right: 4%; background: linear-gradient(#ff4fb8, transparent); animation: beam 6s ease-in-out infinite alternate-reverse; }
@keyframes beam { from { transform: rotate(-18deg); } to { transform: rotate(14deg); } }

.m-resto { background: linear-gradient(160deg, #241712, #0f0a08); padding: 30px 24px; }
.m-script { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: #f2c58f; }
.m-big { font-family: var(--serif); font-size: 2.7rem; line-height: 1; margin: 26px 0; color: #fff3e4; }
.m-pill { display: inline-block; padding: 8px 18px; border-radius: 999px; border: 1px solid #f2c58f; color: #f2c58f; font-size: .78rem; }

.m-craft { background: linear-gradient(160deg, #e9e3d8, #cfc5b3); color: #1d1a14; padding: 30px 24px; }
.m-kick { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; opacity: .6; }
.m-serif { font-family: var(--serif); font-size: 2.5rem; line-height: 1; margin: 20px 0 26px; }
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-grid span { height: 70px; border-radius: 8px; background: linear-gradient(135deg, #8b6a43, #5a4129); }
.m-grid span:nth-child(2) { background: linear-gradient(135deg, #b48a5a, #7a5a38); }

.panel { position: absolute; padding: 16px 18px; text-align: left; z-index: 5; font-size: .85rem; }
.panel-build { width: 250px; left: -2%; top: 330px; transform: translateZ(140px); }
.panel-title { font-weight: 600; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.spark { color: var(--cyan); text-shadow: 0 0 10px var(--cyan); }
.panel ul { list-style: none; display: grid; gap: 8px; }
.panel li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.85); }
.panel li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none; }
.panel li.ok::before { background: #4fe39a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%2304130a' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/12px no-repeat; }
.panel li.load::before { border: 2px solid var(--cyan); border-top-color: transparent; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.panel-score { right: -1%; top: 60px; width: 180px; transform: translateZ(180px); }
.panel-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.panel-num { font-size: 2.6rem; font-weight: 700; letter-spacing: -.04em; }
.panel-num small { font-size: .9rem; color: var(--muted); font-weight: 400; }
.ring-meter { position: absolute; right: 16px; top: 18px; width: 40px; height: 40px; }
.ring-meter circle { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 3; }
.ring-meter .ring-fill { stroke: #4fe39a; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 2; transform: rotate(-90deg); transform-origin: center; filter: drop-shadow(0 0 4px #4fe39a); }
.panel-live { right: 6%; top: 440px; display: flex; align-items: center; gap: 10px; font-weight: 600; transform: translateZ(220px); border-radius: 999px; padding: 12px 20px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #4fe39a; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(79,227,154,.7); } 70% { box-shadow: 0 0 0 12px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- Manifeste ---------- */
.manifesto { width: min(1100px, calc(100% - 40px)); margin: 0 auto; padding: 180px 0 160px; }
.manifesto-text { font-size: clamp(1.9rem, 4.4vw, 3.9rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.12; }
.manifesto-text .w { opacity: .15; transition: none; }
.manifesto-text .w.hot { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Réalisations ---------- */
.work { position: relative; }
.work-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 100px 0; }
.work-head { width: var(--wrap); margin: 0 auto 50px; }
.work-head h2, .section-head h2 { font-size: clamp(2.4rem, 6vw, 5rem); }
.work-track { display: flex; gap: 32px; padding-left: max(20px, calc((100% - 1240px) / 2)); padding-right: 20px; width: max-content; }
.work-card { width: min(640px, 80vw); flex: none; }
.work-visual { display: block; height: 400px; overflow: hidden; position: relative; transition: transform .5s, border-color .4s; }
.work-card:hover .work-visual { border-color: rgba(205,210,220, .5); }
.w-screen { position: absolute; inset: 42px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.w-next .w-screen { inset: 0; }
.w-hds .w-screen { background: radial-gradient(ellipse at 50% 110%, rgba(235,240,250,.4), transparent 60%), #060a18; }
.w-calypso .w-screen { background: radial-gradient(ellipse at 30% 0%, rgba(205,210,220,.35), transparent 55%), radial-gradient(ellipse at 80% 100%, rgba(150,158,175,.4), transparent 55%), #0d0716; }
.w-logo { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; position: relative; z-index: 1; }
.w-logo span { font-weight: 300; margin-left: .15em; color: #6ff4ff; }
.w-serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; }
.w-tagline { color: var(--muted); letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; margin-top: 14px; position: relative; z-index: 1; }
.w-beams span { position: absolute; bottom: -10%; width: 70px; height: 130%; filter: blur(22px); opacity: .5; transform-origin: bottom; background: linear-gradient(0deg, #6ff4ff, transparent); animation: beamUp 4s ease-in-out infinite alternate; }
.w-beams span:nth-child(1) { left: 15%; } .w-beams span:nth-child(2) { left: 46%; background: linear-gradient(0deg, #3f7bff, transparent); animation-delay: -1.5s; } .w-beams span:nth-child(3) { right: 15%; animation-delay: -3s; }
@keyframes beamUp { from { transform: rotate(-20deg); } to { transform: rotate(20deg); } }
.w-wave { position: absolute; bottom: 0; left: 0; right: 0; height: 40%; background: repeating-radial-gradient(ellipse at 50% 140%, transparent 0 18px, rgba(205,210,220,.18) 19px 20px); }
.w-next { border-style: dashed; }
.w-plus { font-size: 6rem; font-weight: 200; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Site réel en direct dans la maquette */
.live-frame {
  position: absolute; inset: 42px 0 0; overflow: hidden; z-index: 2;
  opacity: 0; transition: opacity .8s ease;
}
.live-frame.ready { opacity: 1; }
.live-frame iframe {
  width: 1440px; height: 900px; border: 0; display: block;
  transform-origin: 0 0; transform: scale(var(--s, .44));
  pointer-events: none; background: #000;
}
.live-badge {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-size: .66rem; letter-spacing: .14em; font-weight: 700; color: #4fe39a;
}
.live-badge .pulse { width: 7px; height: 7px; }
.live-open {
  position: absolute; right: 16px; bottom: 16px; z-index: 3;
  padding: 9px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: rgba(4,4,11,.6); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.work-visual:hover .live-open { opacity: 1; transform: none; }

.work-meta { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 6px 0; gap: 16px; }
.work-meta h3 { font-size: 1.4rem; }
.work-meta p { color: var(--muted); font-size: .92rem; text-align: right; }

/* ---------- Sections génériques ---------- */
.section { width: var(--wrap); margin: 0 auto; padding: 140px 0; }
.section-head { margin-bottom: 60px; }
.section-head.center { text-align: center; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(300px, auto); gap: 18px; }
.tile { padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; }
.tile-big { grid-row: span 2; }
.tile-wide { grid-column: span 2; flex-direction: row; align-items: flex-end; gap: 40px; }
.tile-wide > div:last-child { max-width: 380px; }
.tile h3 { font-size: 1.5rem; margin-bottom: 10px; }
.tile p { color: var(--muted); }
.tile-visual { flex: 1; position: relative; min-height: 140px; margin-bottom: 24px; }
.tile-wide .tile-visual { margin: 0; align-self: stretch; }
.tv-win { position: absolute; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(150deg, rgba(255,255,255,.12), rgba(255,255,255,.02)); backdrop-filter: blur(8px); }
.tv-win.a { inset: 6% 26% 30% 4%; background: linear-gradient(150deg, rgba(235,240,250,.25), rgba(150,158,175,.08)); }
.tv-win.b { inset: 22% 8% 16% 30%; }
.tv-win.c { inset: 48% 38% 2% 14%; background: linear-gradient(150deg, rgba(205,210,220,.25), rgba(150,158,175,.08)); }
.tv-event { display: grid; place-items: center; }
.tv-event span {
  font-size: 3.4rem; font-weight: 800; letter-spacing: .1em; color: transparent;
  -webkit-text-stroke: 1.5px var(--pink); text-shadow: 0 0 30px rgba(205,210,220,.6);
  animation: flicker 4s infinite;
}
@keyframes flicker { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .3; } 95% { opacity: 1; } 97% { opacity: .5; } }
.tv-map {
  border-radius: 14px; overflow: hidden;
  background-image: linear-gradient(rgba(235,240,250,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(235,240,250,.12) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 75%);
}
.pin { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 20px var(--cyan); }
.pin::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid var(--cyan); animation: ping 2s infinite; }
@keyframes ping { from { transform: scale(.3); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.tv-shield { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.bar { display: block; height: 10px; border-radius: 10px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); background: var(--grad); border-radius: 10px; box-shadow: 0 0 14px rgba(150,158,175,.6); }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: center; }
.price { padding: 36px 32px; display: flex; flex-direction: column; }
.price-name { color: var(--muted); font-weight: 500; }
.price-amount { font-size: 3.4rem; font-weight: 700; letter-spacing: -.05em; line-height: 1.1; margin: 6px 0 10px; }
.price-desc { color: var(--muted); font-size: .95rem; margin-bottom: 24px; }
.price ul { list-style: none; margin-bottom: 30px; display: grid; gap: 12px; }
.price li { display: flex; gap: 12px; align-items: center; font-size: .95rem; }
.price li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); flex: none; }
.price-hot { padding: 50px 34px; border-color: rgba(150,158,175, .55); box-shadow: 0 40px 100px -30px rgba(150,158,175,.6), inset 0 1px 0 rgba(255,255,255,.2); }
.price-hot .price-amount { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-badge { position: absolute; top: 18px; right: 18px; font-size: .72rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--grad); color: #0b0c10; }
.price .btn { justify-content: center; }
.sub { margin-top: 18px; padding: 24px 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.sub p:first-child { color: var(--muted); }
.sub b { color: var(--text); }
.sub-price { font-size: 2rem; font-weight: 700; letter-spacing: -.04em; white-space: nowrap; }
.sub-price small { font-size: .9rem; color: var(--muted); font-weight: 400; }
.legal { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 18px; }

.final { position: relative; text-align: center; padding: 200px 20px 180px; overflow-x: clip; overflow-y: visible; }
.footer { position: relative; }
.final-orb {
  position: absolute; left: 50%; top: 55%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(var(--accent), .45), rgba(var(--accent), .12) 40%, transparent 68%);
  filter: blur(30px);
}
.final-title { font-size: clamp(3rem, 9vw, 8rem); letter-spacing: -.055em; }
.final-sub { color: var(--muted); font-size: 1.2rem; margin: 22px 0 46px; }
.final-form { display: flex; gap: 8px; padding: 8px; max-width: 860px; margin: 0 auto; border-radius: 999px; }
.final-form input {
  flex: 1; min-width: 0; background: transparent; border: 0; padding: 14px 20px; color: var(--text);
  font: 400 1rem var(--sans); outline: none; border-right: 1px solid var(--line);
}
.final-form input:last-of-type { border-right: 0; }
.final-form input::placeholder { color: var(--muted); }

.footer { overflow: hidden; padding-bottom: 30px; }
.footer-giant {
  font-size: clamp(5rem, 21vw, 22rem); font-weight: 800; letter-spacing: -.07em; line-height: .8; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none;
}
.footer-row { width: var(--wrap); margin: 30px auto 0; display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; gap: 16px; }
.footer-row a:hover { color: var(--text); }

@media (max-width: 1000px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-big { grid-row: auto; grid-column: span 2; min-height: 360px; }
  .pricing { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .sub { max-width: 480px; margin: 18px auto 0; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding-top: 130px; }
  .stage { height: 440px; margin-top: 50px; }
  .stage-inner { width: 140vw; margin-left: -20vw; }
  .mock-center { height: 380px; }
  .mock-left, .mock-right { height: 280px; }
  .panel-build { left: 18%; top: 250px; transform: translateZ(140px) scale(.8); }
  .panel-score { right: 18%; transform: translateZ(180px) scale(.75); }
  .panel-live { display: none; }
  .manifesto { padding: 110px 0; }
  .work-visual { height: 280px; }
  .work-meta { flex-direction: column; gap: 4px; }
  .work-meta p { text-align: left; }
  .section { padding: 100px 0; }
  .bento { grid-template-columns: 1fr; }
  .tile-big, .tile-wide { grid-column: auto; }
  .tile-wide { flex-direction: column; align-items: stretch; }
  .tile-wide .tile-visual { min-height: 100px; }
  .final { padding: 130px 20px; }
  .final-form { flex-direction: column; border-radius: 24px; }
  .final-form input { border-right: 0; border-bottom: 1px solid var(--line); }
  .final-form .btn { justify-content: center; }
  .footer-row { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  html { scroll-behavior: auto; }
  .manifesto-text .w { opacity: 1; }
}

/* ---------- Chiffres ---------- */
.search-demo { max-width: 820px; margin: 0 auto 26px; padding: 22px; }
.search-bar {
  display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: 1.15rem;
}
.search-bar svg { width: 20px; height: 20px; fill: none; stroke: var(--cyan); stroke-width: 2; flex: none; }
.caret { width: 2px; height: 1.3em; background: var(--cyan); margin-left: -10px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.results { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.res {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 20px; border-radius: 16px; border: 1px solid transparent;
  transition: opacity .5s, transform .5s;
}
.res.hide { opacity: 0; transform: translateY(10px); }
.res-url { font-size: .8rem; color: var(--muted); }
.res-title { font-weight: 600; font-size: 1.05rem; color: rgba(255,255,255,.55); }
.res-ctr { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.res-ctr b { color: var(--text); font-size: 1.15rem; }
.res-you {
  background: linear-gradient(110deg, rgba(235,240,250,.12), rgba(150,158,175,.08));
  border-color: rgba(235,240,250,.35); box-shadow: 0 0 40px -10px rgba(235,240,250,.45);
}
.res-you .res-url { color: var(--cyan); }
.res-you .res-title { color: var(--text); }
.res-you .res-ctr b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.5rem; }
.search-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 16px; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1100px; margin: 0 auto; }
.stat { padding: 30px 28px; }
.stat-num { font-size: clamp(3rem, 5vw, 4.4rem); font-weight: 700; letter-spacing: -.06em; line-height: 1; }
.stat-num .stat-count { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-num small { font-size: .45em; color: var(--muted); font-weight: 500; letter-spacing: -.02em; }
.stat-label { margin: 14px 0 18px; color: var(--muted); font-size: 1rem; }
.stat-label b { color: var(--text); font-weight: 600; }
.stat-src { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); }

/* ---------- Calypso en construction ---------- */
.build-badge {
  margin-left: auto; font-size: .66rem; letter-spacing: .14em; font-weight: 700; color: #ffc85f;
  display: inline-flex; align-items: center; gap: 7px;
}
.build-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ffc85f; box-shadow: 0 0 10px #ffc85f; animation: blink 1.4s steps(1) infinite; }
.w-build .w-screen::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255,200,95,.05) 0 14px, transparent 14px 28px);
}
.build-bar { position: relative; z-index: 1; width: 220px; height: 6px; margin-top: 26px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; }
.build-bar span { position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: 6px; background: linear-gradient(90deg, #ffc85f, #ffe7a8); box-shadow: 0 0 14px #ffc85f; animation: building 2.8s ease-in-out infinite; }
@keyframes building { 0% { left: -40%; } 100% { left: 100%; } }

@media (max-width: 900px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
  .search-bar { font-size: 1rem; padding: 14px 18px; }
  .res { padding: 12px 14px; }
  .res-title { font-size: .95rem; }
}

/* ---------- Barre de contact en verre (hero + bas de page) ---------- */
.glass-pro {
  position: relative; isolation: isolate;
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.03) 45%, rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(30px) saturate(180%) brightness(1.08);
  -webkit-backdrop-filter: blur(30px) saturate(180%) brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -1px 0 rgba(255,255,255,.06),
    inset 0 0 30px rgba(255,255,255,.04),
    0 25px 60px -20px rgba(0,0,0,.7),
    0 0 80px -30px rgba(var(--accent), .45);
}
.glass-pro::before { /* liseré lumineux en dégradé */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: linear-gradient(120deg, rgba(255,255,255,.55), rgba(235,240,250,.25) 30%, rgba(255,255,255,.05) 55%, rgba(150,158,175,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.glass-pro::after { /* reflet qui glisse */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.10) 48%, transparent 60%);
  background-size: 250% 100%; animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen { 0%, 60% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
.glass-pro input { color: var(--text); }
.glass-pro input::placeholder { color: rgba(255,255,255,.55); }
.glass-pro:focus-within { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 25px 60px -20px rgba(0,0,0,.7), 0 0 0 4px rgba(235,240,250,.12), 0 0 90px -20px rgba(235,240,250,.5); }
.hero-form { max-width: 800px; margin: 0 auto; }
@media (max-width: 720px) {
  .hero-form { max-width: 420px; }
  .stage { margin-top: 80px; }
}

/* ---------- Pastille « En ligne » plus visible ---------- */
.panel-live {
  right: 17%; top: 470px;
  padding: 14px 24px 14px 20px; gap: 12px; font-size: 1.02rem; letter-spacing: -.01em;
  color: #eafff4;
  background: linear-gradient(135deg, rgba(10, 32, 24, .88), rgba(6, 12, 22, .88));
  border: 1px solid rgba(79, 227, 154, .55);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 0 0 4px rgba(79, 227, 154, .08), 0 0 40px -6px rgba(79, 227, 154, .55), 0 20px 40px -15px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.18);
}
.panel-live .pulse { width: 11px; height: 11px; box-shadow: 0 0 12px #4fe39a; }
@media (max-width: 720px) {
  .panel-live { display: flex; right: 22%; top: 405px; transform: translateZ(220px) scale(.85); }
}

/* ---------- Barre de navigation flottante en verre ---------- */
.nav {
  top: 14px; left: 50%; right: auto; transform: translateX(-50%);
  width: min(1180px, calc(100% - 28px));
  padding: 8px 8px 8px 22px; border-radius: 999px;
  border: 1px solid transparent;
  transition: background .4s, border-color .4s, box-shadow .4s, top .4s, width .4s;
}
.nav.scrolled {
  top: 10px; width: min(980px, calc(100% - 28px));
  padding: 8px 8px 8px 22px;
  background: linear-gradient(135deg, rgba(20, 24, 38, .62), rgba(8, 10, 18, .55));
  border: 1px solid rgba(255, 255, 255, .10);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 18px 50px -18px rgba(0,0,0,.85), 0 0 60px -30px rgba(235,240,250,.3);
}
.nav-links { gap: 4px; }
.nav-links a {
  padding: 8px 16px; border-radius: 999px; transition: color .25s, background .25s;
}
.nav-links a:hover { background: rgba(255,255,255,.06); }
.nav-links a.active { color: var(--text); background: rgba(255,255,255,.09); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.nav .btn-light { padding: 10px 20px; }
@media (max-width: 720px) {
  .nav, .nav.scrolled { width: calc(100% - 20px); top: 10px; padding: 6px 6px 6px 16px; }
}

/* Défilement doux géré en JS (le scroll-behavior CSS casse les sections épinglées) */
html { scroll-behavior: auto; }

/* ---------- Logo HALYO ---------- */
.logo img { display: block; height: 20px; width: auto; }
@media (max-width: 720px) { .logo img { height: 17px; } }

/* ---------- Identité HALYO : footer ---------- */
.footer-giant { background: none; -webkit-text-fill-color: initial; line-height: 0; padding-top: 60px; }
.footer-giant img {
  display: block; width: min(1100px, 90vw); margin: 0 auto; opacity: .16;
  -webkit-mask-image: linear-gradient(#000 30%, transparent 95%); mask-image: linear-gradient(#000 30%, transparent 95%);
}

/* ---------- Abonnements (en option) ---------- */
.subs { margin-top: 26px; }
.subs-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-weight: 600; font-size: 1.15rem; margin-bottom: 14px; }
.subs-tag { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.04); }
.subs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.subs-grid .sub { margin-top: 0; align-items: center; }
.subs .sub .sub-name { color: var(--text); font-weight: 600; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.subs .sub .sub-desc { color: var(--muted); font-size: .95rem; }
.sub-badge { font-size: .68rem; padding: 3px 10px; border-radius: 999px; background: var(--grad); color: #0b0c10; font-weight: 600; }
.sub-hot { border-color: rgba(255,255,255,.28); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 60px -25px rgba(235,240,250,.35), inset 0 1px 0 rgba(255,255,255,.2); }
.subs-note { margin-top: 14px; color: var(--muted); font-size: .9rem; }
.subs-note b { color: var(--text); }
@media (max-width: 1000px) {
  .subs { max-width: 480px; margin: 26px auto 0; }
  .subs-grid { grid-template-columns: 1fr; }
  .subs-grid .sub { max-width: none; margin: 0; align-items: flex-start; }
}

/* ---------- Lien Instagram dans la barre ---------- */
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-ig {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px; font-size: .9rem; font-weight: 500;
  color: var(--muted); border: 1px solid var(--line); background: rgba(255,255,255,.04);
  transition: color .25s, background .25s, border-color .25s;
}
.nav-ig:hover { color: var(--text); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.22); }
.nav-ig span { font-size: .8em; transition: transform .25s; }
.nav-ig:hover span { transform: translate(2px, -2px); }
@media (max-width: 960px) { .nav-links a { padding: 8px 11px; } }
@media (max-width: 720px) { .nav-ig { padding: 8px 12px; font-size: .82rem; } }
@media (max-width: 380px) { .nav-ig { display: none; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 60px; align-items: start; }
.faq-head { position: sticky; top: 120px; margin-bottom: 0; }
.faq-more { margin-top: 26px; color: var(--muted); font-size: 1rem; }
.faq-more a { color: var(--text); border-bottom: 1px solid rgba(255,255,255,.3); transition: border-color .25s; }
.faq-more a:hover { border-color: var(--text); }
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: 18px; transition: border-color .3s, background .3s; }
.faq-item[open] { border-color: rgba(255,255,255,.24); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 26px; font-weight: 600; font-size: 1.08rem; letter-spacing: -.015em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { /* le « + » qui devient « × » */
  content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.04);
  font-weight: 300; font-size: 1.3rem; line-height: 1; color: var(--muted);
  transition: transform .35s ease, color .25s, background .25s;
}
.faq-item summary:hover::after { color: var(--text); background: rgba(255,255,255,.09); }
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--text); }
.faq-item summary:focus-visible { outline: 2px solid rgba(255,255,255,.4); outline-offset: -2px; border-radius: 18px; }
.faq-item p { padding: 0 26px 24px; color: var(--muted); max-width: 640px; }
.faq-item[open] p { animation: faqIn .4s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; gap: 40px; }
  .faq-head { position: static; }
}
@media (max-width: 600px) {
  .faq-item summary { padding: 18px 18px; font-size: 1rem; }
  .faq-item p { padding: 0 18px 20px; }
}

/* ---------- Page Mentions légales ---------- */
.page-legal {
  background:
    radial-gradient(ellipse 70% 50% at 80% 0%, rgba(205,215,235,.10), transparent 70%),
    radial-gradient(ellipse 60% 50% at 10% 40%, rgba(110,120,145,.12), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
.legal-page { width: min(880px, calc(100% - 40px)); margin: 0 auto; padding: 170px 0 90px; }
.legal-page h1 { font-size: clamp(2.8rem, 8vw, 5.6rem); letter-spacing: -.05em; margin-bottom: 26px; }
.legal-intro { color: var(--muted); font-size: 1.08rem; max-width: 680px; margin-bottom: 50px; }
.legal-block { padding: 30px 32px; margin-bottom: 14px; border-radius: 20px; }
.legal-block h2 { font-size: 1.3rem; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.legal-block h2 span { font-size: .78rem; font-weight: 500; letter-spacing: .1em; color: var(--muted); }
.legal-block p { color: var(--muted); }
.legal-block p + p { margin-top: 12px; }
.legal-block b { color: var(--text); font-weight: 600; }
.legal-block a { color: var(--text); border-bottom: 1px solid rgba(255,255,255,.3); transition: border-color .25s; }
.legal-block a:hover { border-color: var(--text); }
.legal-block dl { display: grid; margin-top: 14px; }
.legal-block dl div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.07); }
.legal-block dt { color: var(--muted); font-size: .92rem; }
.legal-block dd { color: var(--text); }
.todo { background: rgba(255,200,95,.16); color: #ffc85f; padding: 1px 7px; border-radius: 6px; }
.legal-update { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 34px; }
.page-legal .footer { padding-top: 10px; }
.footer-row a[aria-current="page"] { color: var(--text); }
@media (max-width: 600px) {
  .legal-page { padding-top: 130px; }
  .legal-block { padding: 24px 20px; }
  .legal-block dl div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- CGV : listes et citation ---------- */
.legal-block ul { list-style: none; display: grid; gap: 10px; margin: 4px 0 14px; }
.legal-block li { position: relative; padding-left: 20px; color: var(--muted); }
.legal-block li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.legal-block blockquote {
  margin: 14px 0; padding: 14px 18px; border-left: 2px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.04); border-radius: 0 12px 12px 0; color: var(--text); font-size: .95rem;
}

/* ---------- Réalisations sur mobile/tablette : carrousel au doigt (pas d'épinglage) ---------- */
@media (max-width: 900px), (hover: none), (pointer: coarse) {
  .work-pin { min-height: 0; overflow: visible; padding: 90px 0 70px; }
  .work-head { margin-bottom: 30px; }
  .work-track {
    width: auto; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; gap: 16px; padding: 0 20px 10px; scroll-padding: 0 20px;
  }
  .work-track::-webkit-scrollbar { display: none; }
  .work-card { width: 84vw; max-width: 520px; scroll-snap-align: start; }
}
